Skip to content

Commit

Permalink
Merge pull request #10 from jakzal/called-class-container
Browse files Browse the repository at this point in the history
Use the called class name instead to support test case inhertiance
  • Loading branch information
jakzal committed Jun 7, 2018
2 parents 8da2be8 + f1ced82 commit e691a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/TestCase/SymfonyContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ trait SymfonyContainer

public function createContainer(): ContainerInterface
{
return static::bootKernel()->getContainer()->get(__CLASS__);
return static::bootKernel()->getContainer()->get(\get_called_class());
}
}

0 comments on commit e691a0c

Please sign in to comment.