PHP Class Visualphpunit\Core\Parser

Author: Johannes Skov Frandsen ([email protected])
ファイルを表示 Open project: visualphpunit/visualphpunit Class Usage Examples

Public Methods

Method Description
run ( string[] $tests ) : double\arrayinteger | array> Run the list of test files

Private Methods

Method Description
addBootstrap ( array $tests ) : void Require bootstrap if vpu can find it
explodeTestName ( string $testName ) : mixed[] Explode a testname into class and method components
filterTrace ( array $trace ) : mixed[] Filter the trace to exclude vendor and VPU classes
friendlyName ( sreing $camelCaseString ) : string Convert camelCase to friendly name
getComparison ( Exception $e ) : mixed[] Get expected and actual if available
parseTest ( string $status, string | object $test ) : mixed[] Parse individual test
parseTestSuite ( PHPUnit_Framework_TestResult $result ) : double\arrayinteger | array> Parse the test suite result

Method Details

run() public method

Run the list of test files
public run ( string[] $tests ) : double\arrayinteger | array>
$tests string[]
return double\arrayinteger | array>