/** * @test * @dataProvider provider_next * * @param string Period * @param integer Timestamp from which to calculate * @param integer Next timestamp in period */ public function test_next($period, $from, $expected_result) { $cron = new Cron($period, NULL); $result = $cron->next($from); $this->assertSame($expected_result, $result); }