Peridot\Core\Suite::getTests PHP Method

getTests() public method

Return collection of tests
public getTests ( ) : array
return array
    public function getTests()
    {
        return $this->tests;
    }

Usage Example

Example #1
0
 /**
  * Handle the start of a suite.
  *
  * @access private
  */
 public function onSuiteStart(Suite $suite)
 {
     foreach ($suite->getTests() as $test) {
         $definition = new ReflectionFunction($test->getDefinition());
         $parameters = $definition->getParameters();
         if ($parameters) {
             $test->setDefinitionArguments($this->parameterArguments($parameters));
         }
     }
 }