Class 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 /fit/FileRunner.php (line 34)


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

running fixture object

  • access: private
string $input (line 52)
  • access: private
Parse $tables (line 46)

table parse

  • access: private
Methods
main (line 71)

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

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

return codes:

  1. - everything went alright
  2. - invalid number of arguments
  3. - file io problem
  4. - parse exception
127 - unexpected exception

  • return: 0 on success, or value greater 1 on error
  • static:
  • access: public
  • see: FileRunner::run()
int main (array $argv)
  • array $argv: argv
process (line 164)

process tables

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

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 16:01:04 +0200 by phpDocumentor 1.3.0RC5