Skip to content

Commit

Permalink
Merge pull request #49 from glaubinix/phpunit-warning
Browse files Browse the repository at this point in the history
PHPUnit: fix warning about deprecated usage of at() matcher
  • Loading branch information
garak committed Mar 13, 2024
2 parents 6c1ee82 + 3263a5a commit b74068c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/DependencyInjection/Compiler/TwigFormPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public function testProcessWithoutFilesystemAndWithNativeFilesystem(): void
$builder = $this->createMock(ContainerBuilder::class);
$definition = $this->createMock(Definition::class);

$builder->expects($this->at(0))->method('hasDefinition')->willReturn(false);
$builder->expects($this->at(1))->method('hasDefinition')->willReturn(true);
$builder->expects($this->exactly(2))->method('hasDefinition')->willReturn(false, true);
$builder->expects($this->once())->method('getDefinition')->willReturn($definition);
$builder->expects($this->once())->method('hasParameter')->willReturn(false);
$definition->method('addMethodCall');
Expand Down

0 comments on commit b74068c

Please sign in to comment.