Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
  • Loading branch information
Andreas Frömer authored and icanhazstring committed Jan 4, 2022
1 parent c63732f commit 54ccdf7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/Integration/UnusedCommandTest.php
Expand Up @@ -120,13 +120,10 @@ public function itShouldNotReportPatternExcludedPackages(): void
public function itShouldNotReportFileDependencyWithFunctionGuard(): void
{
chdir(__DIR__ . '/../assets/TestProjects/FileDependencyFunctionWithGuard');
$commandTester = new CommandTester($this->container->get(UnusedCommand::class));
$exitCode = $commandTester->execute([]);

self::assertEquals(
0,
$this->getApplication()->run(
new ArrayInput(['unused']),
new NullOutput()
)
);
self::assertSame(0, $exitCode);
self::assertStringContainsString('Found 1 used, 0 unused and 0 ignored packages', $commandTester->getDisplay());
}
}

0 comments on commit 54ccdf7

Please sign in to comment.