require the include of the security related scripts in globals.php
[openemr.git] / gacl / test_suite / phpunit / runtests2.php
blob34261bc0105efaddcc3fe2817453f5804144810f
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';
7 ?>
8 <html>
9 <head>
10 <title><?php echo $title; ?></title>
11 <STYLE TYPE="text/css">
12 <?php
13 include ("stylesheet.css");
15 </STYLE>
16 </head>
17 <body>
18 <h1><?php echo $title; ?></h1>
19 <p>
20 This page runs all the phpUnit self-tests, and uses the
21 PrettyTestResult subclass of TestResult to produce nice HTML output.
22 </p>
23 <p>
24 Unlike typical test run, <strong>expect many test cases to
25 fail</strong>. Exactly those with <code>pass</code> in their name
26 should succeed.
27 </p>
28 <p>
29 <?php
30 if (isset($only)) {
31 $suite = new TestSuite($only);
34 $result = new PrettyTestResult;
35 $suite->run($result);
36 $result->report();
38 </body>
39 </html>