1 <?php
// -*- mode: sgml-html; mmm-classes: html-php -*-
3 include("phpunit_test.php");
4 // above set $suite to self-test suite
6 $title = 'PhpUnit test run, different output format';
10 <title
><?php
echo $title; ?
></title
>
11 <STYLE TYPE
="text/css">
13 include ("stylesheet.css");
18 <h1
><?php
echo $title; ?
></h1
>
20 This page runs all the phpUnit self
-tests
, and uses the
21 PrettyTestResult subclass of TestResult to produce nice HTML output
.
24 Unlike typical test run
, <strong
>expect many test cases to
25 fail
</strong
>. Exactly those with
<code
>pass
</code
> in their name
31 $suite = new TestSuite($only);
34 $result = new PrettyTestResult
;