| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function testFromStringPreferredInstall() : void |
||
| 17 | { |
||
| 18 | $exception = PreferredInstallIsNotSource::fromPreferredInstall('foo'); |
||
| 19 | |||
| 20 | self::assertInstanceOf(PreferredInstallIsNotSource::class, $exception); |
||
| 21 | self::assertInstanceOf(InvalidArgumentException::class, $exception); |
||
| 22 | self::assertSame( |
||
| 23 | <<<'EXPECTED' |
||
| 24 | The detected preferred install required for the git verification to work correctly is "source", but your composer.json configuration reported "foo". |
||
| 25 | Please edit your composer.json to enforce "source" installation as described at https://getcomposer.org/doc/06-config.md#preferred-install |
||
| 26 | EXPECTED |
||
| 27 | , |
||
| 28 | $exception->getMessage() |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | public function testFromArrayPreferredInstall() : void |
||
| 47 |