Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
discordier committed Oct 2, 2023
1 parent c702c00 commit e278920
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/CyberSpectrumPdfLatexBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ public function testRegistersCompilerPasses(): void
$container
->expects($this->exactly(2))
->method('addCompilerPass')->willReturnOnConsecutiveCalls(
$this->returnCallback(function ($pass) {
$this->returnCallback(function ($pass) use ($container) {
$this->assertInstanceOf(SetAutoescapePass::class, $pass);
return $container;
}),
$this->returnCallback(function ($pass) {
$this->returnCallback(function ($pass) use ($container) {
$this->assertInstanceOf(AddEscaperPass::class, $pass);
return $container;
})
);

Expand Down

0 comments on commit e278920

Please sign in to comment.