Skip to content

Commit

Permalink
Give the tests a proper main method
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Net_Wifi/trunk@239087 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
cweiske committed Jul 3, 2007
1 parent ba5bac2 commit afbfa80
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/AllTests.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'AllTests::main');
chdir(dirname(__FILE__) . '/../');
define('PHPUnit_MAIN_METHOD', 'Net_Wifi_AllTests::main');
}

require_once 'PHPUnit/Framework/TestSuite.php';
Expand All @@ -11,7 +10,7 @@
require_once 'Net_WifiTest.php';


class AllTests
class Net_Wifi_AllTests
{
public static function main()
{
Expand All @@ -29,7 +28,7 @@ public static function suite()
}
}

if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
AllTests::main();
if (PHPUnit_MAIN_METHOD == 'Net_Wifi_AllTests::main') {
Net_Wifi_AllTests::main();
}
?>

0 comments on commit afbfa80

Please sign in to comment.