| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class PhpInfoCollectorTest extends SapphireTest |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Note: testing with reflection since it's tidier than moving parent::collect() into its own method just |
||
| 13 | * so we can mock it. |
||
| 14 | * |
||
| 15 | * @dataProvider longPhpVersionProvider |
||
| 16 | * @param string $phpVersion |
||
| 17 | * @param string $expected |
||
| 18 | * @throws \ReflectionException |
||
| 19 | */ |
||
| 20 | public function testTrimLongPhpVersionNumbers($phpVersion, $expected) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array[] |
||
| 33 | */ |
||
| 34 | public static function longPhpVersionProvider() |
||
| 45 |