Skip to content

Instantly share code, notes, and snippets.

@greg606
Created August 16, 2010 20:58
Show Gist options
  • Save greg606/527720 to your computer and use it in GitHub Desktop.
Save greg606/527720 to your computer and use it in GitHub Desktop.
<?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