Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function testValidVersionsWithoutReference() |
||
30 | { |
||
31 | $lockData = json_decode(file_get_contents(__DIR__ . '/../../composer.lock'), true); |
||
32 | |||
33 | $packages = array_merge($lockData['packages'], $lockData['packages-dev']); |
||
34 | |||
35 | self::assertNotEmpty($packages); |
||
36 | |||
37 | foreach ($packages as $package) { |
||
38 | self::assertSame( |
||
39 | $package['version'], |
||
40 | Versions::getVersionOnly($package['name']) |
||
41 | ); |
||
42 | } |
||
43 | } |
||
44 | |||
52 |