コード例 #1
0
ファイル: suite.php プロジェクト: isantiago/foswiki
 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
ファイル: suite.process.php プロジェクト: isantiago/foswiki
require_once 'test.process.padding.php';
require_once 'test.process.margin.php';
require_once 'test.process.margin.left.php';
class HTML2PS_CSSProcessTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('HTML2PS CSS tokenization test suite');
        $suite->addTestSuite('TestCSSProcess1');
        $suite->addTestSuite('TestCSSProcess2');
        $suite->addTestSuite('TestCSSProcess3');
        $suite->addTestSuite('TestCSSProcess4');
        $suite->addTestSuite('TestCSSProcess5');
        $suite->addTestSuite('TestCSSProcess6');
        $suite->addTestSuite('TestCSSProcess7');
        $suite->addTestSuite('TestCSSProcess8');
        $suite->addTestSuite('TestCSSProcessImport');
        $suite->addTestSuite('TestCSSProcessClassCase');
        $suite->addTestSuite('TestCSSProcessPadding');
        $suite->addTestSuite('TestCSSProcessMargin');
        $suite->addTestSuite('TestCSSProcessMarginLeft');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'HTML2PS_CSSProcessTests::main') {
    HTML2PS_CSSProcessTests::main();
}