Permalink
Browse files

add proper PHPT handler to AllTests.php

git-svn-id: http://svn.php.net/repository/pear/packages/XML_Util/trunk@259049 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 6dc6340 commit 451c2822341dd25d35346a55eb3b76691369ee45 Chuck Burgess committed May 4, 2008
Showing with 12 additions and 1 deletion.
  1. +12 −1 tests/AllTests.php
View
13 tests/AllTests.php
@@ -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 @@ public static function suite()
* 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;
}
}

0 comments on commit 451c282

Please sign in to comment.