mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
PHPStan/tests updates (#11996)
* Remove a bunch of inline ignores and migrate all PHPUnit assertions to static calls * Update baseline (1573, 93) * Update commit hash
This commit is contained in:
parent
dd8af946fd
commit
37d722e73c
141 changed files with 1342 additions and 1382 deletions
|
@ -30,7 +30,7 @@ class ValidateCommandTest extends TestCase
|
|||
$appTester = $this->getApplicationTester();
|
||||
$appTester->run(array_merge(['command' => 'validate'], $command));
|
||||
|
||||
$this->assertSame(trim($expected), trim($appTester->getDisplay(true)));
|
||||
self::assertSame(trim($expected), trim($appTester->getDisplay(true)));
|
||||
}
|
||||
|
||||
public function testValidateOnFileIssues(): void
|
||||
|
@ -42,7 +42,7 @@ class ValidateCommandTest extends TestCase
|
|||
$appTester->run(['command' => 'validate']);
|
||||
$expected = './composer.json not found.';
|
||||
|
||||
$this->assertSame($expected, trim($appTester->getDisplay(true)));
|
||||
self::assertSame($expected, trim($appTester->getDisplay(true)));
|
||||
}
|
||||
|
||||
public function testWithComposerLock(): void
|
||||
|
@ -63,7 +63,7 @@ Read more about correctly resolving merge conflicts https://getcomposer.org/doc/
|
|||
and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r
|
||||
OUTPUT;
|
||||
|
||||
$this->assertSame(trim($expected), trim($appTester->getDisplay(true)));
|
||||
self::assertSame(trim($expected), trim($appTester->getDisplay(true)));
|
||||
}
|
||||
|
||||
public function testUnaccessibleFile(): void
|
||||
|
@ -79,8 +79,8 @@ OUTPUT;
|
|||
$appTester->run(['command' => 'validate']);
|
||||
$expected = './composer.json is not readable.';
|
||||
|
||||
$this->assertSame($expected, trim($appTester->getDisplay(true)));
|
||||
$this->assertSame(3, $appTester->getStatusCode());
|
||||
self::assertSame($expected, trim($appTester->getDisplay(true)));
|
||||
self::assertSame(3, $appTester->getStatusCode());
|
||||
chmod($directory.'/composer.json', 0700);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue