Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public static function assertChangesEqual( |
||
22 | Changes $expected, |
||
23 | Changes $actual, |
||
24 | string $message = '' |
||
25 | ) : void { |
||
26 | Assert::assertNotNull( |
||
27 | self::reflectionUnBufferedChanges()->getValue($actual), |
||
28 | 'Buffer must NOT be exhausted' |
||
29 | ); |
||
30 | // Forces eager initialisation of the `Changes` instances, allowing us to compare them by value |
||
31 | Assert::assertSame(count($expected), count($actual)); |
||
32 | Assert::assertEquals($expected, $actual, $message); |
||
33 | } |
||
48 |