From bf1dc76c4ba2828d3cccbcd1cf03806932b4c2ac Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sat, 6 Nov 2021 17:56:32 +0000 Subject: [PATCH] Fix mock --- tests/ExtensionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ExtensionTest.php b/tests/ExtensionTest.php index 82c9e57..80fef5f 100644 --- a/tests/ExtensionTest.php +++ b/tests/ExtensionTest.php @@ -180,7 +180,7 @@ public function testContainerBuildsExcludingCoveredFiles(): void public function testContainerBuildsWithCoverageSkipped(): void { $input = $this->createMock(InputInterface::class); - $input->method('hasParameterOption')->willReturn('--no-coverage'); + $input->method('hasParameterOption')->with($this->equalTo('--no-coverage'))->willReturn(true); $output = $this->createMock(OutputInterface::class); $container = new ContainerBuilder();