1
0
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:
rxu
2020-12-01 13:10:45 +07:00
parent 382c7acbc8
commit 1d9f9b5ecd
14 changed files with 83 additions and 79 deletions

View File

@@ -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(), '');
}
}