From 33e690b4db5106fb624b2510385811e010f6a2dc Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 6 Dec 2012 08:11:36 +0100 Subject: [PATCH] fixed some tests when the extension is not enabled --- test/Twig/Tests/TemplateTest.php | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) 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; } /** -- 1.7.2.5