<?php /** * start FIT runner * * $Id: web.php 15 2007-09-18 22:36:12Z gerd $ */ // mangle include path $baseDir = dirname( __FILE__ ) . '/../..'; $incPath = realpath( $baseDir . '/..' ) . PATH_SEPARATOR . get_include_path(); set_include_path( $incPath ); // what file to process $in = 'in/math.html'; if( isset( $_GET['in'] ) ) { $in = $_GET['in']; } // load class loader if( !class_exists( 'Testing_FIT_Loader', false ) ) { include 'Testing/FIT/Loader.php'; } // tell class loader where to find project fixtures $fitDir = dirname( __FILE__ ) . '/fixture'; Testing_FIT_Loader::addClassDir( $fitDir ); // load and start runner Testing_FIT_Loader::loadClass( 'Testing_FIT_Runner' ); $fr = new Testing_FIT_Runner(); $fr->run( $in, '-' ); ?>