Ejemplo n.º 1
0
 /**
  * @dataProvider getAdapters
  */
 public function testGetNextPrimes(MathAdapterInterface $math)
 {
     $currentPrime = $math->nextPrime($this->startPrime);
     for ($i = 0; $i < $this->primeCount; $i++) {
         $currentPrime = $math->nextPrime($currentPrime);
         $this->assertTrue($math->isPrime($currentPrime));
         $this->assertContains($currentPrime, $this->knownPrimes);
     }
 }