mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-10 12:06:46 +00:00
Merge branch '1.x' into 2.x
* 1.x: simplified code use load() instead of loadTemplate() in tests added the possibility to pass a TemplateWrapper to Twig\Environment::load()
This commit is contained in:
@@ -200,7 +200,7 @@ abstract class IntegrationTestCase extends TestCase
|
||||
return $prevHandler ? $prevHandler($type, $msg, $file, $line, $context) : false;
|
||||
});
|
||||
|
||||
$template = $twig->loadTemplate('index.twig');
|
||||
$template = $twig->load('index.twig');
|
||||
} catch (\Exception $e) {
|
||||
if (false !== $exception) {
|
||||
$message = $e->getMessage();
|
||||
|
||||
Reference in New Issue
Block a user