PHP Classes

File: testing.php

Recommend this page to a friend!
  Classes of Richard Carson   PHP Template Based Testing Framework   testing.php   Download  
File: testing.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Template Based Testing Framework
Test the output of application site scripts
Author: By
Last change:
Date: 9 years ago
Size: 464 bytes
 

Contents

Class file image Download
<?php
   
include_once('testbed.class.php');

   
# Configuration options
   
$temp_folder = 'temp';
   
$test_log = 'tests.log';
       
$test_log = implode('/', array($temp_folder, $test_log));
   
$date_format = "F jS Y g:i a";
   
$tests = array(
       
'tests/simple_example.tpl'
   
);

   
$testbed = new testing($test_log, $temp_folder, $date_format);
    foreach (
$tests as $test_location)
       
$testbed->test($test_location);
   
$testbed->end();
    print
nl2br(file_get_contents($test_log))."\n";
?>