Exemplo n.º 1
0
 /**
  * @covers NumbersPHP\Basic::factorial
  */
 public function testFactorial()
 {
     $msg = 'factorial should return the product of n * (n - 1) * (n - 2) * ... * 1';
     $this->assertEquals(24, \NumbersPHP\Basic::factorial(4), $msg);
     $this->assertEquals(120, \NumbersPHP\Basic::factorial(5), $msg);
 }