mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 04:27:00 +00:00
fixed PHPUnit deprecations
This commit is contained in:
@@ -304,12 +304,11 @@ class EnvironmentTest extends TestCase
|
||||
$this->assertTrue($twig->isTemplateFresh('page', time()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \LogicException
|
||||
* @expectedExceptionMessage Unable to register extension "Twig\Tests\EnvironmentTest_Extension" as it is already registered.
|
||||
*/
|
||||
public function testOverrideExtension()
|
||||
{
|
||||
$this->expectException(\LogicException::class);
|
||||
$this->expectExceptionMessage('Unable to register extension "Twig\\Tests\\EnvironmentTest_Extension" as it is already registered.');
|
||||
|
||||
$this->expectException(\LogicException::class);
|
||||
$this->expectExceptionMessage('Unable to register extension "Twig\Tests\EnvironmentTest_Extension" as it is already registered.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user