runtests2.php
来自「一个基于web的开源项目管理工具」· PHP 代码 · 共 40 行
PHP
40 行
<?php // -*- mode: sgml-html; mmm-classes: html-php -*-include("phpunit_test.php");// above set $suite to self-test suite$title = 'PhpUnit test run, different output format';?> <html> <head> <title><?php echo $title; ?></title> <STYLE TYPE="text/css"> <?php include ("stylesheet.css"); ?> </STYLE> </head> <body> <h1><?php echo $title; ?></h1> <p> This page runs all the phpUnit self-tests, and uses the PrettyTestResult subclass of TestResult to produce nice HTML output. </p> <p> Unlike typical test run, <strong>expect many test cases to fail</strong>. Exactly those with <code>pass</code> in their name should succeed. </p> <p> <?php if (isset($only)) { $suite = new TestSuite($only); } $result = new PrettyTestResult; $suite->run($result); $result->report(); ?> </body> </html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?