Location: PHPKode > projects > PhpGACL > phpgacl-3.3.7/test_suite/phpunit/runtests.php
<?php // -*- mode: html; mmm-classes: html-php -*-

// above set $suite to self-test suite

$title = 'PhpUnit test run';
    <title><?php echo $title; ?></title>
    <STYLE TYPE="text/css">
    include ("stylesheet.css");
    <h1><?php echo $title; ?></h1>
      Unlike a typical test run, <strong>expect many test cases to
      fail</strong>.  Exactly those with <code>pass</code> in their
      name should succeed.
      For each test we display both the test result -- <span
      class="Pass">ok</span>, <span class="Failure">FAIL</span>, or
      <span class="Error">ERROR</span> -- and also a meta-result --
      <span class="Expected">as expected</span>, <span
      class="Unexpected">UNEXPECTED</span>, or <span
      class="Unknown">unknown</span> -- that indicates whether the
      expected test result occurred.  Although many test results will
      be 'FAIL' here, all meta-results should be 'as expected', except
      for a few 'unknown' meta-results (because of errors) when running
      in PHP3.
    <h2>Test Results</h2>
       if (isset($only))
	$suite = new TestSuite($only);
	$result = new SelfTestResult;

Return current item: PhpGACL