1
0
Fork 0

Merge pull request #8733 from naderman/fix-solver-bug-exception-7665

Test for issue resulting in overly long learnt rules and solver bug exception
pull/9320/head
Jordi Boggiano 2020-10-22 10:30:46 +02:00 committed by GitHub
commit 50d0e3d3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3058 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -184,6 +184,15 @@ class InstallerTest extends TestCase
return $cases;
}
/**
* @group slow
* @dataProvider getSlowIntegrationTests
*/
public function testSlowIntegration($file, $message, $condition, $composerConfig, $lock, $installed, $run, $expectLock, $expectInstalled, $expectOutput, $expect, $expectResult)
{
return $this->testIntegration($file, $message, $condition, $composerConfig, $lock, $installed, $run, $expectLock, $expectInstalled, $expectOutput, $expect, $expectResult);
}
/**
* @dataProvider getIntegrationTests
*/
@ -379,9 +388,19 @@ class InstallerTest extends TestCase
}
}
public function getSlowIntegrationTests()
{
return $this->loadIntegrationTests('installer-slow/');
}
public function getIntegrationTests()
{
$fixturesDir = realpath(__DIR__.'/Fixtures/installer/');
return $this->loadIntegrationTests('installer/');
}
public function loadIntegrationTests($path)
{
$fixturesDir = realpath(__DIR__.'/Fixtures/'.$path);
$tests = array();
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($fixturesDir), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) {