From 2055f567f981d12d10d0f60d9c03c61ad0aac504 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 3 Apr 2012 08:59:31 +0200 Subject: [PATCH] fixed Twig unit tests when a template must throw an exception --- test/Twig/Tests/integrationTest.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/Twig/Tests/integrationTest.php b/test/Twig/Tests/integrationTest.php index 4a41b2e..5a34418 100644 --- a/test/Twig/Tests/integrationTest.php +++ b/test/Twig/Tests/integrationTest.php @@ -29,7 +29,7 @@ class Twig_Tests_IntegrationTest extends PHPUnit_Framework_TestCase $condition = $match[2]; $templates = $this->parseTemplates($match[3]); $exception = $match[4]; - $outputs = array(); + $outputs = array(null, array(), null, ''); } elseif (preg_match('/--TEST--\s*(.*?)\s*(?:--CONDITION--\s*(.*))?\s*((?:--TEMPLATE(?:\(.*?\))?--(?:.*?))+)--DATA--.*?--EXPECT--.*/s', $test, $match)) { $message = $match[1]; $condition = $match[2]; -- 1.7.2.5