Exemplo n.º 1
0
    define('PHPUnit_MAIN_METHOD', 'Modules_Default_AllTests::main');
}
require_once 'Modules/Default/AuthControllerTest.php';
/**
 * @category   Firal
 * @package    Firal_Modules_Default
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2009-2010 Firal (http://firal.org/)
 * @license    http://firal.org/licenses/new-bsd    New BSD License
 */
class Modules_Default_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    /**
     * Regular suite
     *
     * @return PHPUnit_Framework_TestSuite
     */
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Firal CMS - Modules_Default');
        $suite->addTestSuite('Modules_Default_AuthControllerTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Modules_Default_AllTests::main') {
    Modules_Default_AllTests::main();
}
Exemplo n.º 2
0
 /**
  * Regular suite
  *
  * All tests except those that require output buffering.
  *
  * @return PHPUnit_Framework_TestSuite
  */
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Firal CMS - Modules');
     $suite->addTest(Modules_Default_AllTests::suite());
     return $suite;
 }