PHP Class PHPUnit_Extensions_Database_UI_Mediums_Text, qcodo

This class builds the call context based on command line parameters and prints output to stdout and stderr as appropriate.
Author: Mike Lively ([email protected])
Inheritance: implements PHPUnit_Extensions_Database_UI_IMedium
Show file Open project: qcodo/qcodo

Protected Properties

Property Type Description
$arguments array
$command string

Public Methods

Method Description
__construct ( array $arguments )
buildContext ( PHPUnit_Extensions_Database_UI_Context $context ) Builds the context for the application.
error ( string $message ) Prints the message to stderr
handleException ( Exception $e ) Handles the displaying of exceptions received from the application.
output ( string $message ) Prints the message to stdout.

Method Details

__construct() public method

public __construct ( array $arguments )
$arguments array

buildContext() public method

Builds the context for the application.
public buildContext ( PHPUnit_Extensions_Database_UI_Context $context )
$context PHPUnit_Extensions_Database_UI_Context

error() public method

Prints the message to stderr
public error ( string $message )
$message string

handleException() public method

Handles the displaying of exceptions received from the application.
public handleException ( Exception $e )
$e Exception

output() public method

Prints the message to stdout.
public output ( string $message )
$message string

Property Details

$arguments protected property

protected array $arguments
return array

$command protected property

protected string $command
return string