Skip to content

Commit cb8988d

Browse files
committed
test: ~
1 parent 31cc587 commit cb8988d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/ExpressionTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ class ExpressionTest extends \PHPUnit_Framework_TestCase
99
{
1010
/**
1111
* @dataProvider scheduleProvider
12-
* @covers \Ahc\Cron\Expression::isDue
13-
* @covers \Ahc\Cron\Expression::checkModifier
1412
*/
1513
public function test_isDue($expr, $time, $foo, $expected)
1614
{
@@ -19,6 +17,13 @@ public function test_isDue($expr, $time, $foo, $expected)
1917
$this->assertSame($expected, $actual, 'The expression ' . $expr . ' has failed');
2018
}
2119

20+
public function test_isCronDue()
21+
{
22+
$expr = new Expression;
23+
24+
$this->assertTrue(is_bool($expr->isCronDue('*/1 * * * *', time())));
25+
}
26+
2227
public function test_isDue_throws_if_expr_invalid()
2328
{
2429
$this->setExpectedException(\UnexpectedValueException::class);

0 commit comments

Comments
 (0)