Class PHPFIT_FileRunner

Description

FIT FileRunner

Run fit-tests from tables stored in HTML files. FileRunner provides a simple interface to process tests from CLI or "remote controlled" from anther application.

Located in /FileRunner.php (line 39)


	
			
Variable Summary
 Fixture $fixture
 string $input
 Parse $tables
Method Summary
 int main (array $argv)
 bool process ()
 bool run (string $in, string $out)
Variables
Fixture $fixture (line 45)

running fixture object

  • access: private
string $input (line 57)
  • access: private
Parse $tables (line 51)

table parse

  • access: private
Methods
main (line 76)

Emulate c-stylish main() function to run applicattion on command line

The most common usage from any script. FileRunner::main( $_SERVER['argv'] );

return codes:

  • 0 everything went alright
  • 1 invalid number of arguments
  • 2 file io problem
  • 3 parse exception
  • 127 unexpected exception

int main (array $argv)
  • array $argv: argv
process (line 171)

process tables

  • return: always true
  • access: public
bool process ()
run (line 127)

run test

Process all tables in input file and store result in output file.

Example:

  $fr = new FileRunner();
  $fr->run( 'infilt.html', 'outfile.html' );

  • return: always true
  • access: public
bool run (string $in, string $out)
  • string $in: path to input file
  • string $out: path to output file

Documentation generated on Sun, 02 Apr 2006 23:20:50 +0000 by phpDocumentor 1.3.0RC5