Example #1
0
 /**
  * Main function. Return the serie
  *
  * @param Integer $elems
  * @return Array
  */
 public function run($elems = 100)
 {
     $out = array();
     foreach (range(1, $elems) as $elem) {
         $out[$elem] = $this->fizzBuzzElement->render($elem);
     }
     return $out;
 }
 /** @dataProvider dataProvider */
 function testSimple($actual, $expected)
 {
     $fizzBuzzElement = new FizzBuzzElement();
     $this->assertEquals($fizzBuzzElement->render($actual), $expected);
 }