1 | <?php |
||
8 | class TimeElapsedTest extends \PHPUnit_Framework_TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @test |
||
12 | */ |
||
13 | public function invocation() |
||
18 | |||
19 | public function provideCalculations() |
||
37 | |||
38 | /** |
||
39 | * @test |
||
40 | * @dataProvider provideCalculations |
||
41 | */ |
||
42 | public function fullAndShortCalculations($full, $datetimeOrSeconds, $now, $short = null) |
||
47 | |||
48 | /** |
||
49 | * @test |
||
50 | * @expectedException \BadMethodCallException |
||
51 | */ |
||
52 | public function negativeTimestampNotHandleable() |
||
57 | |||
58 | /** |
||
59 | * @test |
||
60 | * @expectedException \Exception |
||
61 | * @expectedExceptionMessage DateTime::__construct(): |
||
62 | */ |
||
63 | public function invalidDatetime() |
||
67 | } |
||
68 |