mageekguy\atoum\test::getTestMethods PHP Method

getTestMethods() public method

public getTestMethods ( array $tags = [] )
$tags array
    public function getTestMethods(array $tags = array())
    {
        $testMethods = array();
        foreach (array_keys($this->testMethods) as $methodName) {
            if ($this->methodIsIgnored($methodName, $tags) === false) {
                $testMethods[] = $methodName;
            }
        }
        return $testMethods;
    }

Usage Example

Esempio n. 1
0
 /**
  * @param test $test
  * @return $this
  */
 public function setTest(test $test)
 {
     if (null === $this->rule) {
         return $this;
     }
     $ruler = new ruler($this->rule);
     foreach ($test->getTestMethods() as $testMethod) {
         $isMethodIgnored = $ruler->isMethodIgnored($test, $testMethod);
         $test->ignoreMethod($testMethod, $isMethodIgnored);
     }
     return $this;
 }
All Usage Examples Of mageekguy\atoum\test::getTestMethods
test