From: Fabien Potencier Date: Thu, 6 Dec 2012 07:11:36 +0000 (+0100) Subject: fixed some tests when the extension is not enabled X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=33e690b4db5106fb624b2510385811e010f6a2dc;p=web%2Fkonrad%2Ftwig.git fixed some tests when the extension is not enabled --- diff --git a/test/Twig/Tests/TemplateTest.php b/test/Twig/Tests/TemplateTest.php index 2a9768a..ac67e02 100644 --- a/test/Twig/Tests/TemplateTest.php +++ b/test/Twig/Tests/TemplateTest.php @@ -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; } /**