| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function testValidVersions() |
||
| 14 | { |
||
| 15 | $lockData = json_decode(file_get_contents(__DIR__ . '/../../composer.lock'), true); |
||
| 16 | |||
| 17 | $packages = array_merge($lockData['packages'], $lockData['packages-dev']); |
||
| 18 | |||
| 19 | self::assertNotEmpty($packages); |
||
| 20 | |||
| 21 | foreach ($packages as $package) { |
||
| 22 | self::assertSame( |
||
| 23 | $package['version'] . '@' . $package['source']['reference'], |
||
| 24 | Versions::getVersion($package['name']) |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 52 |