| 1 | <?php |
||
| 5 | abstract class TestCase extends \PHPUnit_Framework_TestCase |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Assert that two dates do not differ more than $treshold seconds. |
||
| 9 | * |
||
| 10 | * This is a convenient method to test if dates are propably equal to each other. |
||
| 11 | * |
||
| 12 | * @param $expected |
||
| 13 | * @param $actual |
||
| 14 | * @param int $threshold |
||
| 15 | */ |
||
| 16 | protected function assertDateTimeEquals($expected, $actual, $threshold = 10) |
||
| 29 | } |
||
| 30 |