Skip to content

Commit

Permalink
Fixed test for PHP <8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiang committed Jan 24, 2024
1 parent cfceccc commit 6ea80e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/Cli/Command/ExceptionGeneratorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand Down Expand Up @@ -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"',
Expand Down

0 comments on commit 6ea80e3

Please sign in to comment.