| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function testTrimLongPhpVersionNumbers($phpVersion, $expected) |
||
| 21 | { |
||
| 22 | $reflection = new ReflectionClass(PhpInfoCollector::class); |
||
| 23 | $method = $reflection->getMethod('trimVersion'); |
||
| 24 | $method->setAccessible(true); |
||
| 25 | |||
| 26 | $collector = new PhpInfoCollector(); |
||
| 27 | $result = $method->invokeArgs($collector, [$phpVersion]); |
||
| 28 | $this->assertSame($expected, $result); |
||
| 29 | } |
||
| 45 |