mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
fixed some tests when the extension is not enabled
This commit is contained in:
@@ -123,10 +123,15 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function getGetAttributeWithTemplateAsObject()
|
||||
{
|
||||
return array(
|
||||
$bools = array(
|
||||
array(false),
|
||||
array(true),
|
||||
);
|
||||
|
||||
if (function_exists('twig_template_get_attributes')) {
|
||||
$bools[] = array(true);
|
||||
}
|
||||
|
||||
return $bools;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user