mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-17 09:15:18 +00:00
Fix PHPUnit deprecations
This commit is contained in:
@@ -12,16 +12,14 @@ namespace Twig\Tests\Loader;
|
||||
*/
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Twig\Error\LoaderError;
|
||||
use Twig\Loader\ArrayLoader;
|
||||
|
||||
class ArrayTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException \Twig\Error\LoaderError
|
||||
*/
|
||||
public function testGetSourceContextWhenTemplateDoesNotExist()
|
||||
{
|
||||
$this->expectException('\Twig\Error\LoaderError');
|
||||
$this->expectException(LoaderError::class);
|
||||
|
||||
$loader = new ArrayLoader([]);
|
||||
|
||||
@@ -59,7 +57,7 @@ class ArrayTest extends TestCase
|
||||
|
||||
public function testGetCacheKeyWhenTemplateDoesNotExist()
|
||||
{
|
||||
$this->expectException('\Twig\Error\LoaderError');
|
||||
$this->expectException(LoaderError::class);
|
||||
|
||||
$loader = new ArrayLoader([]);
|
||||
|
||||
@@ -82,7 +80,7 @@ class ArrayTest extends TestCase
|
||||
|
||||
public function testIsFreshWhenTemplateDoesNotExist()
|
||||
{
|
||||
$this->expectException('\Twig\Error\LoaderError');
|
||||
$this->expectException(LoaderError::class);
|
||||
|
||||
$loader = new ArrayLoader([]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user