PHP Class PHPUnit\Runner\CleverAndSmart\PrioritySorter

Show file Open project: lstrojny/phpunit-clever-and-smart Class Usage Examples

Public Methods

Method Description
__construct ( array $errors, array $timings = [] )
sort ( PHPUnit_Framework_TestSuite $suite )

Private Methods

Method Description
getTime ( PHPUnit_Framework_TestCase $test )
isError ( PHPUnit_Framework_TestCase $test )
sortTest ( $test, $position, SegmentedQueue $orderedTests )
sortTestSuite ( PHPUnit_Framework_TestSuite $suite )

Method Details

__construct() public method

public __construct ( array $errors, array $timings = [] )
$errors array
$timings array

sort() public method

public sort ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite