cvs: pear /PEAR_PackageUpdate/tests AllTests.php

From: Date: Thu, 07 May 2009 19:28:16 +0000
Subject: cvs: pear /PEAR_PackageUpdate/tests AllTests.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-56056@lists.php.net to get a copy of this message
farell Thu May 7 19:28:16 2009 UTC Modified files: /pear/PEAR_PackageUpdate/tests AllTests.php Log: Make test suite more easy: used the PhptTestSuite extension of PHPUnit3 Framework http://cvs.php.net/viewvc.cgi/pear/PEAR_PackageUpdate/tests/AllTests.php?r1=1.6&r2=1.7&diff_format=u Index: pear/PEAR_PackageUpdate/tests/AllTests.php diff -u pear/PEAR_PackageUpdate/tests/AllTests.php:1.6 pear/PEAR_PackageUpdate/tests/AllTests.php:1.7 --- pear/PEAR_PackageUpdate/tests/AllTests.php:1.6 Sat Feb 28 11:39:50 2009 +++ pear/PEAR_PackageUpdate/tests/AllTests.php Thu May 7 19:28:16 2009 @@ -15,7 +15,7 @@ * @author Laurent Laville <pear@laurent-laville.org> * @copyright 2009 Laurent Laville * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: AllTests.php,v 1.6 2009/02/28 11:39:50 farell Exp $ + * @version CVS: $Id: AllTests.php,v 1.7 2009/05/07 19:28:16 farell Exp $ * @link http://pear.php.net/package/PEAR_PackageUpdate * @since File available since Release 1.1.0a1 */ @@ -26,12 +26,12 @@ require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; +require_once 'PHPUnit/Extensions/PhptTestSuite.php'; error_reporting(E_ALL & ~E_STRICT); chdir(dirname(__FILE__)); require_once 'PEAR_PackageUpdate_TestSuite_Exception.php'; -require_once 'PEAR_PackageUpdate_TestSuite_Standard.php'; require_once 'PEAR_PackageUpdate_TestSuite_Stub.php'; /** @@ -81,8 +81,9 @@ public static function suite() { $dir = dirname(__FILE__); + $phpt = new PHPUnit_Extensions_PhptTestSuite($dir); $suite = new PHPUnit_Framework_TestSuite('PEAR_PackageUpdate Test Suite'); - $suite->addTestSuite(new PEAR_PackageUpdate_TestSuite_Standard($dir)); + $suite->addTestSuite($phpt); $suite->addTestSuite('PEAR_PackageUpdate_TestSuite_Exception'); $suite->addTestSuite('PEAR_PackageUpdate_TestSuite_Stub'); return $suite;

« previous php.pear.cvs (#56056) next »