mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/16654] Upgrade Twig to version 3
PHPBB3-16654
This commit is contained in:
@@ -522,7 +522,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
$this->template->set_filenames(array('test' => $filename));
|
||||
$this->assertFileNotExists($this->template_path . '/' . $filename, 'Testing missing file, file cannot exist');
|
||||
|
||||
$this->expectException('Twig_Error_Loader');
|
||||
$this->expectException(\Twig\Error\LoaderError::class);
|
||||
|
||||
$this->display('test');
|
||||
}
|
||||
@@ -530,7 +530,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
|
||||
public function test_invalid_handle()
|
||||
{
|
||||
$this->expectException('Twig_Error_Loader');
|
||||
$this->expectException(\Twig\Error\LoaderError::class);
|
||||
|
||||
$this->display('test');
|
||||
}
|
||||
@@ -1076,7 +1076,7 @@ EOT
|
||||
|
||||
public function test_define_error()
|
||||
{
|
||||
$this->expectException('Twig_Error_Syntax');
|
||||
$this->expectException(\Twig\Error\SyntaxError::class);
|
||||
$this->run_template('define_error.html', array(), array(), array(), '');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user