1 | <?php |
||
12 | class UtilsTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @dataProvider equalDataProvider |
||
16 | * |
||
17 | * @param mixed $a |
||
18 | * @param mixed $b |
||
19 | */ |
||
20 | public function testAreEqualWithEqualData($a, $b) |
||
24 | |||
25 | /** |
||
26 | * @dataProvider notEqualDataProvider |
||
27 | * |
||
28 | * @param mixed $a |
||
29 | * @param mixed $b |
||
30 | */ |
||
31 | public function testAreEqualWithNotEqualData($a, $b) |
||
35 | |||
36 | public function testAreEqualWithRecursiveReference() |
||
50 | |||
51 | /** |
||
52 | * @expectedException \RuntimeException |
||
53 | */ |
||
54 | public function testLoadJsonFromFileThrowsIfFileDoesNotExist() |
||
58 | |||
59 | /** |
||
60 | * @expectedException \JVal\Exception\JsonDecodeException |
||
61 | */ |
||
62 | public function testLoadJsonFromFileThrowsOnJsonDecodeError() |
||
66 | |||
67 | public function equalDataProvider() |
||
84 | |||
85 | public function notEqualDataProvider() |
||
104 | } |
||
105 |