mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
phpstan: update tests/Composer/Test/DependencyResolver/* to level 6 standard (#10242)
This commit is contained in:
parent
8b7e2b600d
commit
a155c076db
4 changed files with 28 additions and 1 deletions
|
@ -140,6 +140,9 @@ class PoolBuilderTest extends TestCase
|
|||
$this->assertSame($expect, $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, array<string>>
|
||||
*/
|
||||
public function getIntegrationTests()
|
||||
{
|
||||
$fixturesDir = realpath(__DIR__.'/Fixtures/poolbuilder/');
|
||||
|
@ -173,6 +176,11 @@ class PoolBuilderTest extends TestCase
|
|||
return $tests;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \SplFileInfo $file
|
||||
* @param string $fixturesDir
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function readTestFile(\SplFileInfo $file, $fixturesDir)
|
||||
{
|
||||
$tokens = preg_split('#(?:^|\n*)--([A-Z-]+)--\n#', file_get_contents($file->getRealPath()), -1, PREG_SPLIT_DELIM_CAPTURE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue