예제 #1
0
파일: AllTests.php 프로젝트: padraic/ZFBlog
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('ZFSTDE Blog Suite');
     $suite->addTest(ZFExt_Model_AllTests::suite());
     $suite->addTest(ZFExt_View_AllTests::suite());
     return $suite;
 }
예제 #2
0
/**
 * Description of AllTests
 *
 * @author seyfer
 */
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'ZFExt_Model_AllTests::main');
}
//require_once 'TestHelper.php';
require_once 'EntryTest.php';
require_once 'AuthorTest.php';
class ZFExt_Model_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('ZFSTDE Blog Suite: Models');
        $suite->addTestSuite('ZFExt_Model_EntryTest');
        $suite->addTestSuite('ZFExt_Model_AuthorTest');
        $suite->addTestSuite('ZFExt_Model_EntryMapperTest');
        $suite->addTestSuite('ZFExt_Model_AuthorMapperTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'ZFExt_Model_AllTests::main') {
    ZFExt_Model_AllTests::main();
}