PHP Class Robo\Task\Testing\PHPUnit

php taskPHPUnit() ->group('core') ->bootstrap('test/bootstrap.php') ->run() ?>
Inheritance: extends Robo\Task\BaseTask, implements Robo\Contract\CommandInterface, implements Robo\Contract\PrintedInterface, use trait Robo\Common\ExecOneCommand
Datei anzeigen Open project: codegyre/robo

Protected Properties

Property Type Description
$command string
$files string Directory of test files or single test file to run. Appended to the command and arguments.

Public Methods

Method Description
__construct ( $pathToPhpUnit = null )
bootstrap ( string $file )
configFile ( string $file )
debug ( )
excludeGroup ( string $group )
file ( string $file ) Test the provided file.
files ( string $files ) Directory of test files or single test file to run.
filter ( string $filter )
getCommand ( )
group ( string $group )
json ( string $file = null ) adds log-json option to runner
run ( )
tap ( string $file = "" )
xml ( string $file = null ) adds log-junit option

Method Details

__construct() public method

public __construct ( $pathToPhpUnit = null )

bootstrap() public method

public bootstrap ( string $file )
$file string

configFile() public method

public configFile ( string $file )
$file string

debug() public method

public debug ( )

excludeGroup() public method

public excludeGroup ( string $group )
$group string

file() public method

Test the provided file.
public file ( string $file )
$file string path to file to test

files() public method

Directory of test files or single test file to run.
Deprecation: Use file() or dir() method instead
public files ( string $files )
$files string A single test file or a directory containing test files.

filter() public method

public filter ( string $filter )
$filter string

getCommand() public method

public getCommand ( )

group() public method

public group ( string $group )
$group string

json() public method

adds log-json option to runner
public json ( string $file = null )
$file string

run() public method

public run ( )

tap() public method

public tap ( string $file = "" )
$file string

xml() public method

adds log-junit option
public xml ( string $file = null )
$file string

Property Details

$command protected_oe property

protected string $command
return string

$files protected_oe property

Directory of test files or single test file to run. Appended to the command and arguments.
protected string $files
return string