PHP Class ParaTest\Console\Testers\PHPUnit

Creates the interface for PHPUnit testing
Inheritance: extends ParaTest\Console\Testers\Tester
Datei anzeigen Open project: brianium/paratest Class Usage Examples

Protected Properties

Property Type Description
$command ParaTest\Console\Commands\ParaTestCommand

Public Methods

Method Description
configure ( Command $command ) : mixed Configures the ParaTestCommand with PHPUnit specific definitions
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | mixed Executes the PHPUnit Runner. Will Display help if no config and no path supplied
getRunnerOptions ( Symfony\Component\Console\Input\InputInterface $input ) : array
requireBootstrap ( $file ) Require the bootstrap. If the file is specified, but does not exist then an exception will be raised.

Protected Methods

Method Description
getBootstrapFile ( Symfony\Component\Console\Input\InputInterface $input, array $options ) : string Fetch the path to the bootstrap file.
getConfig ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration | boolean
hasConfig ( Symfony\Component\Console\Input\InputInterface $input ) : boolean Is there a PHPUnit xml configuration present
hasCoverage ( $options ) : boolean Return whether or not code coverage information should be collected.
hasPath ( Symfony\Component\Console\Input\InputInterface $input ) : boolean Returns whether or not a test path has been supplied via option or regular input
scopedRequire ( $file ) This function limits the scope of a required file so that variables defined in it do not break this object's configuration.

Method Details

configure() public method

Configures the ParaTestCommand with PHPUnit specific definitions
public configure ( Command $command ) : mixed
$command Symfony\Component\Console\Command\Command
return mixed

execute() public method

Executes the PHPUnit Runner. Will Display help if no config and no path supplied
public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | mixed
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | mixed

getBootstrapFile() protected method

Fetch the path to the bootstrap file.
protected getBootstrapFile ( Symfony\Component\Console\Input\InputInterface $input, array $options ) : string
$input Symfony\Component\Console\Input\InputInterface
$options array
return string

getConfig() protected method

protected getConfig ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration | boolean
$input Symfony\Component\Console\Input\InputInterface
return ParaTest\Runners\PHPUnit\Configuration | boolean

getRunnerOptions() public method

public getRunnerOptions ( Symfony\Component\Console\Input\InputInterface $input ) : array
$input Symfony\Component\Console\Input\InputInterface
return array

hasConfig() protected method

Is there a PHPUnit xml configuration present
protected hasConfig ( Symfony\Component\Console\Input\InputInterface $input ) : boolean
$input Symfony\Component\Console\Input\InputInterface
return boolean

hasCoverage() protected method

Return whether or not code coverage information should be collected.
protected hasCoverage ( $options ) : boolean
$options
return boolean

hasPath() protected method

Returns whether or not a test path has been supplied via option or regular input
protected hasPath ( Symfony\Component\Console\Input\InputInterface $input ) : boolean
$input Symfony\Component\Console\Input\InputInterface
return boolean

requireBootstrap() public method

Require the bootstrap. If the file is specified, but does not exist then an exception will be raised.
public requireBootstrap ( $file )
$file

scopedRequire() protected method

This function limits the scope of a required file so that variables defined in it do not break this object's configuration.
protected scopedRequire ( $file )

Property Details

$command protected_oe property

protected ParaTestCommand,ParaTest\Console\Commands $command
return ParaTest\Console\Commands\ParaTestCommand