made the test suite more compatible with old versions of PHPUnit
authorFabien Potencier <fabien.potencier@gmail.com>
Mon, 10 May 2010 17:30:00 +0000 (19:30 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Mon, 10 May 2010 17:30:00 +0000 (19:30 +0200)
phpunit.xml
test/Twig/Tests/Extension/SandboxTest.php
test/Twig/Tests/TokenStreamTest.php
test/Twig/Tests/integrationTest.php

index a726fab..d01af55 100644 (file)
@@ -6,7 +6,7 @@
          convertErrorsToExceptions="true"
          convertNoticesToExceptions="true"
          convertWarningsToExceptions="true"
-         processIsolation="false"
+         processIsolation="true"
          stopOnFailure="false"
          syntaxCheck="false"
 >
index 529aa16..d2f9938 100644 (file)
@@ -15,7 +15,7 @@ class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
 {
   static protected $params, $templates;
 
-  static public function setUpBeforeClass()
+  public function setUp()
   {
     self::$params = array(
       'name' => 'Fabien',
index 80a2bd0..43362cf 100644 (file)
@@ -15,7 +15,7 @@ class Twig_Tests_TokenStreamTest extends PHPUnit_Framework_TestCase
 {
   static protected $tokens;
 
-  static public function setupBeforeClass()
+  public function setUp()
   {
     self::$tokens = array(
       new Twig_Token(Twig_Token::TEXT_TYPE, 1, 0),
index 34bbcc5..b2c11e9 100644 (file)
@@ -15,7 +15,7 @@ class Twig_Tests_IntegrationTest extends PHPUnit_Framework_TestCase
 {
   static protected $fixturesDir;
 
-  static public function setUpBeforeClass()
+  public function setUp()
   {
     self::$fixturesDir = realpath(dirname(__FILE__).'/../../fixtures/');
   }