Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function testFromArrayPreferredInstall() : void |
||
32 | { |
||
33 | $exception = PreferredInstallIsNotSource::fromPreferredInstall(['foo' => 'bar', 'baz' => 'tab']); |
||
34 | |||
35 | self::assertInstanceOf(PreferredInstallIsNotSource::class, $exception); |
||
36 | self::assertInstanceOf(InvalidArgumentException::class, $exception); |
||
37 | self::assertSame( |
||
38 | <<<'EXPECTED' |
||
39 | The detected preferred install required for the git verification to work correctly is "source", but your composer.json configuration reported {"foo":"bar","baz":"tab"}. |
||
40 | Please edit your composer.json to enforce "source" installation as described at https://getcomposer.org/doc/06-config.md#preferred-install |
||
41 | EXPECTED |
||
42 | , |
||
43 | $exception->getMessage() |
||
44 | ); |
||
45 | } |
||
46 | } |
||
47 |