mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +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
|
@ -62,8 +62,8 @@ class RootPackageLoaderTest extends TestCase
|
|||
'minimum-stability' => 'alpha',
|
||||
]);
|
||||
|
||||
$this->assertEquals('alpha', $package->getMinimumStability());
|
||||
$this->assertEquals([
|
||||
self::assertEquals('alpha', $package->getMinimumStability());
|
||||
self::assertEquals([
|
||||
'bar/baz' => BasePackage::STABILITY_DEV,
|
||||
'qux/quux' => BasePackage::STABILITY_RC,
|
||||
'zux/complex' => BasePackage::STABILITY_DEV,
|
||||
|
@ -88,8 +88,8 @@ class RootPackageLoaderTest extends TestCase
|
|||
|
||||
$package = $loader->load([]);
|
||||
|
||||
$this->assertEquals("1.0.0.0", $package->getVersion());
|
||||
$this->assertEquals(RootPackage::DEFAULT_PRETTY_VERSION, $package->getPrettyVersion());
|
||||
self::assertEquals("1.0.0.0", $package->getVersion());
|
||||
self::assertEquals(RootPackage::DEFAULT_PRETTY_VERSION, $package->getPrettyVersion());
|
||||
}
|
||||
|
||||
public function testPrettyVersionForRootPackageInVersionBranch(): void
|
||||
|
@ -110,7 +110,7 @@ class RootPackageLoaderTest extends TestCase
|
|||
$loader = new RootPackageLoader($manager, $config, null, $versionGuesser);
|
||||
$package = $loader->load([]);
|
||||
|
||||
$this->assertEquals('3.0-dev', $package->getPrettyVersion());
|
||||
self::assertEquals('3.0-dev', $package->getPrettyVersion());
|
||||
}
|
||||
|
||||
public function testFeatureBranchPrettyVersion(): void
|
||||
|
@ -138,7 +138,7 @@ class RootPackageLoaderTest extends TestCase
|
|||
$loader = new RootPackageLoader($manager, $config, null, new VersionGuesser($config, $process, new VersionParser()));
|
||||
$package = $loader->load(['require' => ['foo/bar' => 'self.version']]);
|
||||
|
||||
$this->assertEquals("dev-master", $package->getPrettyVersion());
|
||||
self::assertEquals("dev-master", $package->getPrettyVersion());
|
||||
}
|
||||
|
||||
public function testNonFeatureBranchPrettyVersion(): void
|
||||
|
@ -165,6 +165,6 @@ class RootPackageLoaderTest extends TestCase
|
|||
$loader = new RootPackageLoader($manager, $config, null, new VersionGuesser($config, $process, new VersionParser()));
|
||||
$package = $loader->load(['require' => ['foo/bar' => 'self.version'], "non-feature-branches" => ["latest-.*"]]);
|
||||
|
||||
$this->assertEquals("dev-latest-production", $package->getPrettyVersion());
|
||||
self::assertEquals("dev-latest-production", $package->getPrettyVersion());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue