#!/usr/bin/php
<?php
/**
 *
 */
error_reporting( E_ALL | E_STRICT );

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

$incPath = get_include_path() . ':' . realpath( $baseDir . '/..' );
set_include_path( $incPath );
     
//include_once 'PHPFIT/Parser.php';
//include_once 'PHPFIT/Fixture.php';
include_once '../Parser.php';
include_once '../Fixture.php';


$files   = array();
$files[] = $baseDir . '/data/arithmetic.html';
//$files[] = $baseDir . '/data/calculator.html';


$parser =   new PHPFIT_Parser();
$fix    =   new PHPFIT_Fixture();

foreach( $files as $file ) {
    $parser->parse( file_get_contents( $file ) );
    
    echo "File:  $file \n";
    
    //$fix->doTable( $parser );
}

?>