diff --git a/tests/escapingTest.php b/tests/escapingTest.php index 6ebb7b7e36a..31fb5032359 100644 --- a/tests/escapingTest.php +++ b/tests/escapingTest.php @@ -156,7 +156,7 @@ class escapingTest extends \PHPUnit\Framework\TestCase protected function setUp(): void { - $this->env = new \Twig\Environment($this->createMock('\Twig\Loader\LoaderInterface')); + $this->env = new Environment($this->createMock(LoaderInterface::class)); } public function testHtmlEscapingConvertsSpecialChars()