From 6ea80e367d550ab2f43691a4e0d70e0c14b3cdfe Mon Sep 17 00:00:00 2001 From: Fabian Grutschus Date: Wed, 24 Jan 2024 11:54:30 +0100 Subject: [PATCH] Fixed test for PHP <8.2 --- tests/src/Cli/Command/ExceptionGeneratorCommandTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/Cli/Command/ExceptionGeneratorCommandTest.php b/tests/src/Cli/Command/ExceptionGeneratorCommandTest.php index 0532d24..4f1d388 100644 --- a/tests/src/Cli/Command/ExceptionGeneratorCommandTest.php +++ b/tests/src/Cli/Command/ExceptionGeneratorCommandTest.php @@ -67,8 +67,8 @@ public function executeNoParents(): void $input->getOption('no-parents')->willReturn(true); $input->getOption('template-path')->willReturn(vfsStream::url('cwd/template_path')); - $input->bind(Argument::type(InputDefinition::class)); - $input->validate(); + $input->bind(Argument::type(InputDefinition::class))->shouldBeCalled(); + $input->validate()->shouldBeCalled(); $output->writeln( 'Using path for templates: "vfs://cwd/template_path"', @@ -148,8 +148,8 @@ public function executeParents(): void $input->getOption('no-parents')->willReturn(false); $input->getOption('template-path')->willReturn(vfsStream::url('cwd/template_path')); - $input->bind(Argument::type(InputDefinition::class)); - $input->validate(); + $input->bind(Argument::type(InputDefinition::class))->shouldBeCalled(); + $input->validate()->shouldBeCalled(); $output->writeln( 'Using path for templates: "vfs://cwd/template_path"',