mageekguy\atoum\test::getTaggedTestMethods PHP Метод

getTaggedTestMethods() публичный Метод

public getTaggedTestMethods ( array $methods, array $tags = [] )
$methods array
$tags array
    public function getTaggedTestMethods(array $methods, array $tags = array())
    {
        return array_values(array_uintersect($methods, $this->getTestMethods($tags), 'strcasecmp'));
    }

Usage Example

Пример #1
0
 private static function getMethods(test $test, array $runTestMethods, array $tags)
 {
     $methods = array();
     if (isset($runTestMethods['*']) === true) {
         $methods = $runTestMethods['*'];
     }
     $testClass = $test->getClass();
     if (isset($runTestMethods[$testClass]) === true) {
         $methods = $runTestMethods[$testClass];
     }
     if (in_array('*', $methods) === true) {
         $methods = array();
     }
     if (sizeof($methods) <= 0) {
         $methods = $test->getTestMethods($tags);
     } else {
         $methods = $test->getTaggedTestMethods($methods, $tags);
     }
     return $methods;
 }
test