Author: sb
Date: Sat Aug 11 10:23:51 2007
New Revision: 5878

Log:
- PHPUnit 3.2 compatibility fix.

Modified:
    trunk/UnitTest/src/test/printer.php

Modified: trunk/UnitTest/src/test/printer.php
==============================================================================
--- trunk/UnitTest/src/test/printer.php [iso-8859-1] (original)
+++ trunk/UnitTest/src/test/printer.php [iso-8859-1] Sat Aug 11 10:23:51 2007
@@ -15,6 +15,11 @@
 
     public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
     {
+        if ( isset( $this->numberOfTests ) && empty( $this->numberOfTests ) )
+        {
+            $this->numberOfTests[0] = 0;
+        }
+
         parent::write( "\n" );
 
         $name    = $suite->getName() == '' ? '[No name given]' : 
$suite->getName(); 
@@ -25,7 +30,10 @@
 
     public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
     {
-        $this->depth--;
+        if ( isset( $this->depth ) )
+        {
+            $this->depth--;
+        }
     }
 
     /** 


-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to