<?php
error_reporting( E_ALL | E_STRICT );

$baseDir = realpath( dirname( __FILE__ ) . '/..' );

define( 'PHPFIT_FIXTURE_DIR', $baseDir );

$incPath = get_include_path() . ':' . realpath( $baseDir . '/..' );
set_include_path( $incPath );

include_once 'PHPFIT/FileRunner.php';

//$input  = '../data/columnFixture/calc.html';
//$input  = '../data/actionFixture/music01.html';
$input  = '../data/columnFixture/arithmetic.html';
$output = '/tmp/PHPFIT_testoutput.html';

try{
    $fr = new PHPFIT_FileRunner();
    $fr->run( $input, $output );

    echo file_get_contents( $output );
}
catch( Exception $e ) {
    echo 'Exception: ' . $e->getMessage() . '<br />';
}
?>