tests/AppBundle/Service/AlgorithmTest.php
/**
     * Data provider for calculate tests.
     *
     * Param 1: number [Length sequence of numbers]
     * Param 2: expected result
     */
Data provider for calculate tests.
Param 1: number [Length sequence of numbers]
Param 2: expected result
Data provider for calculate tests . Param 1 : number [ Length sequence of numbers ] Param 2 : expected result
public function dataCalculateProvider()
    {
        return array(
            array(0, false),
            array(1, 1),
            array(2, 1),
            array(5, 3),
            array(10, 4),
            array(11, 5)
        );
    }
public function dataCalculateProvider ( ) { return array ( array ( 0 , false ) , array ( 1 , 1 ) , array ( 2 , 1 ) , array ( 5 , 3 ) , array ( 10 , 4 ) , array ( 11 , 5 ) ) ; }
Data provider for calculate tests.
Data provider for calculate tests .