cvs: pear /XML_Util/tests AllTests.php

[email protected] ("Chuck Burgess") Sun, 04 May 2008 19:19:24 -0000
Newsgroups php.pear.cvs
Message-ID <cvsashnazg1209928764@cvsserver>
ashnazg		Sun May  4 19:19:24 2008 UTC

  Modified files:              
    /pear/XML_Util/tests	AllTests.php 
  Log:
  add proper PHPT handler to AllTests.php
  
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/AllTests.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/XML_Util/tests/AllTests.php
diff -u pear/XML_Util/tests/AllTests.php:1.1 pear/XML_Util/tests/AllTests.php:1.2
--- pear/XML_Util/tests/AllTests.php:1.1	Sun May  4 15:21:52 2008
+++ pear/XML_Util/tests/AllTests.php	Sun May  4 19:19:24 2008
@@ -15,7 +15,7 @@
  * @subpackage UnitTesting
  * @author     Chuck Burgess <[email protected]>
  * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
- * @version    CVS: $Id: AllTests.php,v 1.1 2008/05/04 15:21:52 ashnazg Exp $
+ * @version    CVS: $Id: AllTests.php,v 1.2 2008/05/04 19:19:24 ashnazg Exp $
  * @link       http://pear.php.net/package/XML_Util
  * @since      1.1.5
  */
@@ -46,13 +46,17 @@
  */
 require_once 'PHPUnit/Framework.php';
 require_once 'PHPUnit/TextUI/TestRunner.php';
-
+require_once 'PHPUnit/Extensions/PhptTestSuite.php';
 
 /*
  * You must add each additional class-level test suite file here
  */
 // there are no PhpUnit test files... only PHPTs.. so nothing is listed here
 
+/**
+ * directory where PHPT tests are located
+ */
+define('XML_UTIL_DIR_PHPT', dirname(__FILE__));
 
 /**
  * Master Unit Test Suite class for XML_Util
@@ -102,6 +106,13 @@
          * You must add each additional class-level test suite name here
          */
         // there are no PhpUnit test files... only PHPTs.. so nothing is listed here
+
+        /*
+         * add PHPT tests
+         */
+        $phpt = new PHPUnit_Extensions_PhptTestSuite(XML_UTIL_DIR_PHPT);
+        $suite->addTestSuite($phpt);
+
         return $suite;
     }
 }