Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | abstract class TestCase extends BaseTestCase |
||
9 | { |
||
10 | /** |
||
11 | * Asserts that two given JSON encoded objects or arrays are equal. |
||
12 | * |
||
13 | * @param mixed $expected |
||
14 | * @param mixed $actual |
||
15 | * @param string $message |
||
16 | * @return void |
||
17 | * @throws \PHPUnit\Framework\ExpectationFailedException |
||
18 | * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException |
||
19 | */ |
||
20 | public function assertJsonEquals($expected, $actual, $message = '') |
||
21 | { |
||
22 | $this->assertJsonStringEqualsJsonString(json_encode($expected), json_encode($actual), $message); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Asserts that two given SQL query statements are equal. |
||
27 | * |
||
28 | * @param string $expected |
||
29 | * @param string $actual |
||
30 | * @param string $message |
||
31 | * @return void |
||
32 | */ |
||
33 | public function assertSqlEquals($expected, $actual, $message = '') |
||
37 | } |
||
38 | } |
||
39 |