incubator-zeta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebast...@apache.org
Subject [zeta-commits] svn commit: r1003528 - in /incubator/zetacomponents/trunk: Document/tests/odt/ UnitTest/src/ UnitTest/src/constraint/ UnitTest/src/test/
Date Fri, 01 Oct 2010 13:16:20 GMT
Author: sebastian
Date: Fri Oct  1 13:16:19 2010
New Revision: 1003528

URL: http://svn.apache.org/viewvc?rev=1003528&view=rev
Log:
- Require PHPUnit 3.5.

Modified:
    incubator/zetacomponents/trunk/Document/tests/odt/suite.php
    incubator/zetacomponents/trunk/UnitTest/src/bootstrap.php
    incubator/zetacomponents/trunk/UnitTest/src/constraint/image.php
    incubator/zetacomponents/trunk/UnitTest/src/runtests.php
    incubator/zetacomponents/trunk/UnitTest/src/test/case.php
    incubator/zetacomponents/trunk/UnitTest/src/test/database_settings.php
    incubator/zetacomponents/trunk/UnitTest/src/test/image_case.php
    incubator/zetacomponents/trunk/UnitTest/src/test/printer.php
    incubator/zetacomponents/trunk/UnitTest/src/test/runner.php
    incubator/zetacomponents/trunk/UnitTest/src/test/settings.php

Modified: incubator/zetacomponents/trunk/Document/tests/odt/suite.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/Document/tests/odt/suite.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/Document/tests/odt/suite.php (original)
+++ incubator/zetacomponents/trunk/Document/tests/odt/suite.php Fri Oct  1 13:16:19 2010
@@ -45,7 +45,7 @@ require_once 'meta_generator_test.php';
 /**
  * This file is not in use, yet, therefore not tested.
  */
-PHPUnit_Util_Filter::addFileToFilter(
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist(
     dirname( __FILE__ ) . '/../../src/document/xml/odt/filter/element/html_table.php'
 );
 

Modified: incubator/zetacomponents/trunk/UnitTest/src/bootstrap.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/bootstrap.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/bootstrap.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/bootstrap.php Fri Oct  1 13:16:19 2010
@@ -23,13 +23,11 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter( __FILE__, 'PHPUNIT' );
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 // All errors must be reported
 $currentErrorLevel = error_reporting();
-if ( $currentErrorLevel != ( E_ALL | E_STRICT ) )
+if ( ! ( $currentErrorLevel == -1 || $currentErrorLevel == ( E_ALL | E_STRICT ) ) )
 {
     echo "Your error reporting setting is not E_ALL | E_STRICT, please change\nthis in your
php.ini.\n";
     die();
@@ -39,7 +37,7 @@ ini_set( 'include_path', getcwd(). PATH_
 
 require_once 'Base/src/base.php';
 
-function __autoload( $className )
+function ezc_autoload( $className )
 {
     if ( strpos( $className, '_' ) !== false )
     {
@@ -49,4 +47,6 @@ function __autoload( $className )
     }
     ezcBase::autoload( $className );
 }
+
+spl_autoload_register( 'ezc_autoload' );
 ?>

Modified: incubator/zetacomponents/trunk/UnitTest/src/constraint/image.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/constraint/image.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/constraint/image.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/constraint/image.php Fri Oct  1 13:16:19 2010
@@ -23,10 +23,7 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 /**
  * Constraint class for image comparison.

Modified: incubator/zetacomponents/trunk/UnitTest/src/runtests.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/runtests.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/runtests.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/runtests.php Fri Oct  1 13:16:19 2010
@@ -24,18 +24,17 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-
-require_once 'PHPUnit/Runner/Version.php';
-require_once 'PHPUnit/Util/Filter.php';
+require_once 'PHPUnit/Autoload.php';
 
 $version = PHPUnit_Runner_Version::id();
 
-if ( version_compare( $version, '3.4.0' ) == -1 && $version !== '@package_version@'
)
+if ( version_compare( $version, '3.5.0' ) == -1 && $version !== '@package_version@'
)
 {
-    die( "PHPUnit 3.4.0 (or later) is required to run this test suite.\n" );
+    die( "PHPUnit 3.5.0 (or later) is required to run this test suite.\n" );
 }
 
-PHPUnit_Util_Filter::addFileToFilter( __FILE__, 'PHPUNIT' );
+require_once 'PHP/CodeCoverage.php';
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 require_once 'bootstrap.php';
 

Modified: incubator/zetacomponents/trunk/UnitTest/src/test/case.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/test/case.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/test/case.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/test/case.php Fri Oct  1 13:16:19 2010
@@ -23,10 +23,7 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-require_once 'PHPUnit/Framework/TestCase.php';
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 /**
  * Abstract base class for all Zeta Components test cases.

Modified: incubator/zetacomponents/trunk/UnitTest/src/test/database_settings.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/test/database_settings.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/test/database_settings.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/test/database_settings.php Fri Oct  1 13:16:19
2010
@@ -23,10 +23,7 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 /**
  * This class represents the structure of all the database settings.

Modified: incubator/zetacomponents/trunk/UnitTest/src/test/image_case.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/test/image_case.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/test/image_case.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/test/image_case.php Fri Oct  1 13:16:19 2010
@@ -23,10 +23,7 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-require_once 'PHPUnit/Framework/TestCase.php';
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 /**
  * Abstract base class for image related test cases.

Modified: incubator/zetacomponents/trunk/UnitTest/src/test/printer.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/test/printer.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/test/printer.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/test/printer.php Fri Oct  1 13:16:19 2010
@@ -23,10 +23,7 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-require_once 'PHPUnit/TextUI/ResultPrinter.php';
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 /**
  * Test printer class.

Modified: incubator/zetacomponents/trunk/UnitTest/src/test/runner.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/test/runner.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/test/runner.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/test/runner.php Fri Oct  1 13:16:19 2010
@@ -23,12 +23,7 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-
-require_once 'PHPUnit/TextUI/Command.php';
-require_once 'PHPUnit/Util/Class.php';
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 /**
  * Test runner to run the Zeta Components test suite(s).

Modified: incubator/zetacomponents/trunk/UnitTest/src/test/settings.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/UnitTest/src/test/settings.php?rev=1003528&r1=1003527&r2=1003528&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/UnitTest/src/test/settings.php (original)
+++ incubator/zetacomponents/trunk/UnitTest/src/test/settings.php Fri Oct  1 13:16:19 2010
@@ -23,10 +23,7 @@
  * @version //autogentag//
  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  */
-
-require_once 'PHPUnit/Util/Filter.php';
-
-PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
+PHP_CodeCoverage::getInstance()->filter()->addFileToBlacklist( __FILE__, 'PHPUNIT'
);
 
 /**
  * This object stores the settings from the TestRunner.



Mime
View raw message