getRecordings() public method

Fetch records, filtered by type. Use the StorageInterface::STATUS_* constants to define the type.
public getRecordings ( array $types, boolean $includeTime = true ) : array
$types array Types to filter
$includeTime boolean Flag whether the result time should also be fetched
return array
コード例 #1
0
 private function getPassed()
 {
     return $this->storage->getRecordings(array(StorageInterface::STATUS_PASSED));
 }
コード例 #2
0
 private function sort(TestSuite $suite)
 {
     $sorter = new PrioritySorter($this->storage->getRecordings(array(StorageInterface::STATUS_ERROR, StorageInterface::STATUS_FAILURE, StorageInterface::STATUS_CANCEL, StorageInterface::STATUS_FATAL_ERROR, StorageInterface::STATUS_SKIPPED, StorageInterface::STATUS_INCOMPLETE), false), $this->storage->getRecordings(array(StorageInterface::STATUS_PASSED)));
     $sorter->sort($suite);
 }