Example #1
0
 public function testTakingShorter()
 {
     // We target 1000 rows, and 10 seconds
     $chunk = new Chunk(1000, 0.2);
     $chunk->setTarget(10);
     // But we took 5 seconds instead!
     $chunk->interval(5);
     // So, now we should try to process more rows
     $this->assertGreaterThan(1000, $chunk->getEstimatedSize());
 }