private static function getFailMethods(atoum\score $score) { return self::mergeMethods(self::mergeMethods(self::mergeMethods($score->getMethodsWithFail(), $score->getMethodsWithError()), $score->getMethodsWithException()), $score->getMethodsNotCompleted()); }
public function testGetMethodsWithException() { $this->if($score = new atoum\score())->then->array($score->getMethodsWithError())->isEmpty()->if($score->addException(uniqid(), $class = uniqid(), $classMethod = uniqid(), rand(1, PHP_INT_MAX), new \exception()))->then->array($score->getMethodsWithException())->isEqualTo(array($class => array($classMethod)))->if($score->addException(uniqid(), $class, $classOtherMethod = uniqid(), rand(1, PHP_INT_MAX), new \exception()))->then->array($score->getMethodsWithException())->isEqualTo(array($class => array($classMethod, $classOtherMethod)))->if($score->addException(uniqid(), $otherClass = uniqid(), $otherClassMethod = uniqid(), rand(1, PHP_INT_MAX), new \exception()))->then->array($score->getMethodsWithException())->isEqualTo(array($class => array($classMethod, $classOtherMethod), $otherClass => array($otherClassMethod))); }