示例#1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('HTML2PS CSS parsing test suite ("dirty" tests)');
     $suite->addTestSuite(HTML2PS_CSSDefaultTests::suite());
     $suite->addTestSuite(HTML2PS_CSSParseErrorTests::suite());
     $suite->addTestSuite(HTML2PS_CSSParserTests::suite());
     $suite->addTestSuite(HTML2PS_CSSLexerTests::suite());
     $suite->addTestSuite(HTML2PS_CSSProcessTests::suite());
     $suite->addTestSuite(HTML2PS_CSSStyleTests::suite());
     return $suite;
 }
示例#2
0
<?php

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'HTML2PS_CSSStyleTests::main');
}
require_once '../../config.inc.php';
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'test.style.1.php';
class HTML2PS_CSSStyleTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('HTML2PS CSS parsing test suite ("clean" tests)');
        $suite->addTestSuite('TestCSSStyle1');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'HTML2PS_CSSStyleTests::main') {
    HTML2PS_CSSStyleTests::main();
}