Created
August 16, 2010 20:58
-
-
Save greg606/527720 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('PHPUnit_MAIN_METHOD')) { | |
define('PHPUnit_MAIN_METHOD', 'SF_Application_AllTests::main'); | |
} | |
/** | |
* TestHelper | |
*/ | |
require_once dirname(__FILE__) . '/TestHelper.php'; | |
/** | |
* Get the tests | |
*/ | |
require_once 'controllers/indexControllerTest.php'; | |
require_once 'controllers/errorControllerTest.php'; | |
class SF_Application_AllTests | |
{ | |
public static function main() | |
{ | |
PHPUnit_TextUI_TestRunner::run(self::suite()); | |
} | |
public static function suite() | |
{ | |
$suite = new PHPUnit_Framework_TestSuite('zf-core Application Tests'); | |
$suite->addTestSuite('IndexControllerTest'); | |
$suite->addTestSuite('ErrorControllerTest'); | |
return $suite; | |
} | |
} | |
if (PHPUnit_MAIN_METHOD == 'SF_Application_AllTests::main') { | |
SF_Unit_AllTests::main(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment