Ejemplo n.º 1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Kornak');
     $suite->addTest(Kornak_Filter_AllTests::suite());
     $suite->addTest(Kornak_Text_AllTests::suite());
     $suite->addTest(Kornak_View_AllTests::suite());
     return $suite;
 }
Ejemplo n.º 2
0
<?php

/**
 * Test helper
 */
require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Kornak_View_AllTests::main');
}
require_once 'Kornak/View/Helper/AllTests.php';
class Kornak_View_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Kornak - Kornak_View');
        $suite->addTest(Kornak_View_Helper_AllTests::suite());
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Kornak_View_AllTests::main') {
    Kornak_View_AllTests::main();
}