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
|
@ -39,10 +39,10 @@ class FilesystemRepositoryTest extends TestCase
|
|||
|
||||
$packages = $repository->getPackages();
|
||||
|
||||
$this->assertCount(1, $packages);
|
||||
$this->assertSame('package1', $packages[0]->getName());
|
||||
$this->assertSame('1.0.0.0-beta', $packages[0]->getVersion());
|
||||
$this->assertSame('vendor', $packages[0]->getType());
|
||||
self::assertCount(1, $packages);
|
||||
self::assertSame('package1', $packages[0]->getName());
|
||||
self::assertSame('1.0.0.0-beta', $packages[0]->getVersion());
|
||||
self::assertSame('vendor', $packages[0]->getType());
|
||||
}
|
||||
|
||||
public function testCorruptedRepositoryFile(): void
|
||||
|
@ -75,7 +75,7 @@ class FilesystemRepositoryTest extends TestCase
|
|||
->method('exists')
|
||||
->will($this->returnValue(false));
|
||||
|
||||
$this->assertEquals([], $repository->getPackages());
|
||||
self::assertEquals([], $repository->getPackages());
|
||||
}
|
||||
|
||||
public function testRepositoryWrite(): void
|
||||
|
@ -195,7 +195,7 @@ class FilesystemRepositoryTest extends TestCase
|
|||
}));
|
||||
|
||||
$repository->write(true, $im);
|
||||
$this->assertSame(file_get_contents(__DIR__.'/Fixtures/installed.php'), file_get_contents($dir.'/installed.php'));
|
||||
self::assertSame(file_get_contents(__DIR__.'/Fixtures/installed.php'), file_get_contents($dir.'/installed.php'));
|
||||
}
|
||||
|
||||
public function testSafelyLoadInstalledVersions(): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue