Permalink
Browse files

Upgrade PHPUnit require statements (for PEAR QA Team).

git-svn-id: http://svn.php.net/repository/pear/packages/Event_Dispatcher/trunk@321622 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
Daniel Convissor
Daniel Convissor committed Dec 31, 2011
1 parent d0213e2 commit 3432786ba344ac8625893ee15dace2d8ba036d94
Showing with 10 additions and 1 deletion.
  1. +10 −1 tests/AllTests.php
View
@@ -3,7 +3,16 @@
define('PHPUnit_MAIN_METHOD', 'Event_Dispatcher_AllTests::main');
}
-require_once 'PHPUnit/TextUI/TestRunner.php';
+if ($fp = @fopen('PHPUnit/Autoload.php', 'r', true)) {
+ require_once 'PHPUnit/Autoload.php';
+} elseif ($fp = @fopen('PHPUnit/Framework.php', 'r', true)) {
+ require_once 'PHPUnit/Framework.php';
+ require_once 'PHPUnit/TextUI/TestRunner.php';
+} else {
+ die('skip could not find PHPUnit');
+}
+fclose($fp);
+
require_once 'DispatcherTest.php';
class Event_Dispatcher_AllTests

0 comments on commit 3432786

Please sign in to comment.