mageekguy\atoum\test::getAllTags PHP Method

getAllTags() public method

public getAllTags ( )
    public function getAllTags()
    {
        $tags = $this->getTags();
        foreach ($this->testMethods as $annotations) {
            if (isset($annotations['tags']) === true) {
                $tags = array_merge($tags, array_diff($annotations['tags'], $tags));
            }
        }
        return array_values($tags);
    }

Usage Example

Beispiel #1
0
 public static function isIgnored(test $test, array $namespaces, array $tags)
 {
     $isIgnored = $test->isIgnored();
     if ($isIgnored === false && $namespaces) {
         $classNamespace = strtolower($test->getClassNamespace());
         $isIgnored = sizeof(array_filter($namespaces, function ($value) use($classNamespace) {
             return strpos($classNamespace, strtolower($value)) === 0;
         })) <= 0;
     }
     if ($isIgnored === false && $tags) {
         $isIgnored = sizeof($testTags = $test->getAllTags()) <= 0 || sizeof(array_intersect($tags, $testTags)) == 0;
     }
     return $isIgnored;
 }
test