Skip to content

Commit c6d52fa

Browse files
committed
remove util from test fixture
1 parent fc6393d commit c6d52fa

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

tests/Command/MakerCommandTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ public function testExceptionOnMissingDependencies(): void
4040

4141
$fileManager = $this->createMock(FileManager::class);
4242

43-
$mockPhpCompatUtil = $this->createMock(PhpCompatUtil::class);
44-
45-
$command = new MakerCommand($maker, $fileManager, new Generator($fileManager, 'App', $mockPhpCompatUtil));
43+
$command = new MakerCommand($maker, $fileManager, new Generator($fileManager, 'App'));
4644
// needed because it's normally set by the Application
4745
$command->setName('make:foo');
4846
$tester = new CommandTester($command);
@@ -55,9 +53,7 @@ public function testExceptionOnUnknownRootNamespace(): void
5553

5654
$fileManager = $this->createMock(FileManager::class);
5755

58-
$mockPhpCompatUtil = $this->createMock(PhpCompatUtil::class);
59-
60-
$command = new MakerCommand($maker, $fileManager, new Generator($fileManager, 'Unknown', $mockPhpCompatUtil));
56+
$command = new MakerCommand($maker, $fileManager, new Generator($fileManager, 'Unknown'));
6157
// needed because it's normally set by the Application
6258
$command->setName('make:foo');
6359
$tester = new CommandTester($command);

tests/Doctrine/EntityRegeneratorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ private function doTestRegeneration(string $sourceDir, Kernel $kernel, string $n
9999

100100
$fileManager = new FileManager($fs, $autoloaderUtil, new MakerFileLinkFormatter(null), $tmpDir);
101101
$doctrineHelper = new DoctrineHelper('App\\Entity', $container->get('doctrine'));
102-
$phpCompatUtil = new PhpCompatUtil($fileManager);
103-
$generator = new Generator($fileManager, 'App\\', $phpCompatUtil);
102+
$generator = new Generator($fileManager, 'App\\');
104103
$entityClassGenerator = new EntityClassGenerator($generator, $doctrineHelper);
105104
$regenerator = new EntityRegenerator(
106105
$doctrineHelper,

0 commit comments

Comments
 (0)