Login   Register  
PHP Classes
elePHPant
Icontem

File: runTests.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bruyndonckx  >  HTML Generator Class  >  runTests.php  >  Download  
File: runTests.php
Role: Unit test script
Content type: text/plain
Description: Run all junit tests
Class: HTML Generator Class
Generate HTML documents programmatically
Author: By
Last change:
Date: 6 years ago
Size: 812 bytes
 

Contents

Class file image Download
<?php

require_once ('lib/simpletest/unit_tester.php');
require_once (
'lib/simpletest/reporter.php');

require_once (
'junit/HtmlTableTests.php') ;
require_once (
'junit/HtmlTests.php') ;
require_once (
'junit/HtmlFormTests.php') ;
require_once (
'junit/HtmlDocumentTests.php') ;
require_once (
'junit/HtmlMapTests.php') ;

$libtest = array (
'HtmlTable Tests'                => new HtmlTableTests(),
'HtmlForm Tests'                 => new HtmlFormTests(),
'HtmlDocument Tests'             => new HtmlDocumentTests(),
'HtmlTests'                      => new HtmlTests(),
'HtmlMap Tests'                  => new HtmlMapTests(),
) ;

foreach (
$libtest as $testname => $testgroup) {

    
$tester = new GroupTest($testname) ;
    
$tester->addTestCase ($testgroup) ;
    
$tester->run(new HtmlReporter("UTF-8")) ;
    
flush() ;
}


?>