PHP Classes

File: examples/url/all_tests.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/url/all_tests.php   Download  
File: examples/url/all_tests.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 513 bytes
 

Contents

Class file image Download
<?php
define
('SIMPLETESTDIR', '../../../../../simpletest/');
define('TESTDIR', dirname(__FILE__) . '/');
require_once(
SIMPLETESTDIR . 'simple_test.php');
require_once(
SIMPLETESTDIR . 'unit_tester.php');
require_once(
SIMPLETESTDIR . 'reporter.php');

$test = new GroupTest('All Test Files');
foreach(
glob(dirname(__FILE__) . '/*_test.php') as $testfile) {
   
$test->addTestFile($testfile);
}
if (
TextReporter::inCli()) {
   
$test->run(new TextReporter());
} else {
   
$test->run(new HtmlReporter());
}
?>