Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
14 | 79 | public static function isSame(array $statementsA, array $statementsB) |
|
15 | { |
||
16 | // Naive way to check if two implementation are the same |
||
17 | 79 | $nodeDumper = new NodeDumper(); |
|
18 | |||
19 | 79 | $dumpA = $nodeDumper->dump($statementsA); |
|
20 | 79 | $dumpB = $nodeDumper->dump($statementsB); |
|
21 | |||
22 | 79 | return $dumpA === $dumpB; |
|
23 | } |
||
24 | } |
||
25 |