Run a test!

Runnnig a FIT test aways means to walk through an HTML file and execute tests in each HTML table. This is what the runner does for you.

// load class loader
if (!class_exists('Testing_FIT_Loader', false)) {
    include 'Testing/FIT/Loader.php';
}
 
// tell where to find project fixtures
$fitDir =   dirname(__FILE__) . '/fixture';
Testing_FIT_Loader::addClassDir($fitDir);
 
// load runner
Testing_FIT_Loader::loadClass('Testing_FIT_Runner');
 
// run test
$fr =   new Testing_FIT_Runner();
$fr->run('in/helloWorld1.html', '-');