Permalink
Browse files

fixed Twig unit tests when a template must throw an exception

  • Loading branch information...
1 parent 3f962ba commit 2055f567f981d12d10d0f60d9c03c61ad0aac504 @fabpot committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/Twig/Tests/integrationTest.php
@@ -29,7 +29,7 @@ public function getTests()
$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];

0 comments on commit 2055f56

Please sign in to comment.