Example #1
0
 /**
  * Test suite
  *
  * @return PHPUnit_Framework_TestSuite
  */
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Firal CMS');
     $suite->addTest(Firal_AllTests::suite());
     $suite->addTest(Modules_AllTests::suite());
     return $suite;
 }
Example #2
0
 * @category   Firal
 * @package    Firal
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2009-2010 Firal (http://firal.org/)
 * @license    http://firal.org/licenses/new-bsd    New BSD License
 */
class Firal_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    /**
     * 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 - Firal');
        $suite->addTestSuite('Firal_PluginTest');
        $suite->addTest(Firal_Event_AllTests::suite());
        $suite->addTest(Firal_Validate_AllTests::suite());
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Firal_AllTests::main') {
    Firal_AllTests::main();
}