fixed some tests when the extension is not enabled

This commit is contained in:
Fabien Potencier
2012-12-06 08:11:36 +01:00
parent 51e707ffd8
commit 33e690b4db
+7 -2
View File
@@ -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;
}
/**