Fix PHPUnit deprecations

This commit is contained in:
Fabien Potencier
2019-08-08 10:31:09 +02:00
parent c829dafd75
commit 5ebcecf24b
16 changed files with 73 additions and 75 deletions
+4 -6
View File
@@ -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([]);