Skip to content

Commit fa9ed96

Browse files
committed
Update test
Use composer install to dump autoload, as by default composer 2 is not generating the dev autoload rules
1 parent 0c20a0a commit fa9ed96

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/Integration/Composer/ComposerClassToFileTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Phpactor\ClassFileConverter\Domain\ClassName;
77
use Phpactor\ClassFileConverter\Domain\FilePathCandidates;
88
use Phpactor\ClassFileConverter\Adapter\Composer\ComposerClassToFile;
9+
use Prophecy\PhpUnit\ProphecyTrait;
910
use Psr\Log\LoggerInterface;
1011
use Prophecy\Argument;
1112

@@ -14,6 +15,8 @@
1415
*/
1516
class ComposerClassToFileTest extends ComposerTestCase
1617
{
18+
use ProphecyTrait;
19+
1720
/**
1821
* @var LoggerInterface
1922
*/

tests/Integration/Composer/ComposerTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function loadExample($composerFile): void
2323
$filesystem->mirror($projectPath, $this->workspacePath());
2424
$filesystem->copy($composerPath, $this->workspacePath().'/composer.json');
2525
chdir($this->workspacePath());
26-
exec('composer dumpautoload 2> /dev/null');
26+
exec('composer install 2> /dev/null');
2727
}
2828

2929
protected function getClassLoader()

0 commit comments

Comments
 (0)