Skip to content
Snippets Groups Projects
Unverified Commit dbd05633 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix Twig namespaces

parent 6d98654e
No related branches found
No related tags found
No related merge requests found
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
namespace SimpleSAML\Test\Web; namespace SimpleSAML\Test\Web;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use SimpleSAML\Configuration;
use \SimpleSAML\Configuration; use SimpleSAML\XHTML\Template;
use \SimpleSAML\XHTML\Template; use SimpleSAML\Module;
use \SimpleSAML\Module; use Twig\Error\SyntaxError;
class TemplateTest extends TestCase class TemplateTest extends TestCase
{ {
...@@ -35,7 +35,7 @@ class TemplateTest extends TestCase ...@@ -35,7 +35,7 @@ class TemplateTest extends TestCase
try { try {
$t->show(); $t->show();
$this->addToAssertionCount(1); $this->addToAssertionCount(1);
} catch (\Twig_Error_Syntax $e) { } catch (SyntaxError $e) {
$this->fail($e->getMessage().' in '.$e->getFile().':'.$e->getLine()); $this->fail($e->getMessage().' in '.$e->getFile().':'.$e->getLine());
} }
ob_end_clean(); ob_end_clean();
...@@ -54,7 +54,7 @@ class TemplateTest extends TestCase ...@@ -54,7 +54,7 @@ class TemplateTest extends TestCase
try { try {
$t->show(); $t->show();
$this->addToAssertionCount(1); $this->addToAssertionCount(1);
} catch (\Twig_Error_Syntax $e) { } catch (SyntaxError $e) {
$this->fail($e->getMessage().' in '.$e->getFile().':'.$e->getLine()); $this->fail($e->getMessage().' in '.$e->getFile().':'.$e->getLine());
} }
ob_end_clean(); ob_end_clean();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment