Skip to content

Commit

Permalink
fixing test + phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Feb 19, 2018
1 parent 9969e32 commit 14fa7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/DependencyBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public function getMissingPackagesMessage(string $commandName): string
"Missing package%s: to use the %s command, run:\n",
$packagesCount > 1 ? 's' : '',
$commandName
//
);

if (!empty($packages)) {
Expand Down
6 changes: 3 additions & 3 deletions tests/Command/MakerCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\MakerBundle\Command\MakerCommand;
use Symfony\Bundle\MakerBundle\DependencyBuilder;
use Symfony\Bundle\MakerBundle\Generator;
use Symfony\Bundle\MakerBundle\FileManager;
use Symfony\Bundle\MakerBundle\MakerInterface;
use Symfony\Component\Console\Tester\CommandTester;

Expand All @@ -24,9 +24,9 @@ public function testExceptionOnMissingDependencies()
$depBuilder->addClassDependency('Foo', 'foo-package');
});

$generator = $this->createMock(Generator::class);
$fileManager = $this->createMock(FileManager::class);

$command = new MakerCommand($maker, $generator);
$command = new MakerCommand($maker, $fileManager);
// needed because it's normally set by the Application
$command->setName('make:foo');
$tester = new CommandTester($command);
Expand Down

0 comments on commit 14fa7ef

Please sign in to comment.