FIT
[ class tree: FIT ] [ index: FIT ] [ all elements ]

Class: Testing_FIT_Runner

Source Location: /Testing_FIT-0.2.2/Runner.php

Class Overview


FIT Runner


Author(s):

Version:

  • 0.1.1

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
FIT Runner

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.



[ Top ]


Method Detail

main   [line 55]

int main( array $argv)

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

The most common usage from any script.

  1.   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


Parameters:

array   $argv   —  argv

[ Top ]

process   [line 164]

string process( string $input, [bool $isFile = true])

process tables from input

Run tests and return HTML.

  • Return: html output
  • Access: public

Parameters:

string   $input   —  source of HTML
bool   $isFile   —  whether input is a file or a string

[ Top ]

run   [line 107]

bool run( string $input, string $output)

Process tests from file and save output

Process all tables in input file and store result in output file. This is the API you probably want to use...

Example:

  1.   $fr = new Testing_FIT_Runner();
  2.   $fr->run'infile.html''outfile.html' );

  • Return: always true
  • Access: public

Parameters:

string   $input   —  path to input file, or "-" to read from STDIN
string   $output   —  path to output file, or "-" to write to STDOUT

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:09:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.