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