getLastUncompleteMethod() public method

Beispiel #1
0
 public function testGetLastUncompleteMethod()
 {
     $this->if($score = new atoum\score())->then->variable($score->getLastUncompleteMethod())->isNull()->if($score->addPass())->then->variable($score->getLastUncompleteMethod())->isNull()->if($score->addUncompletedMethod($file = uniqid(), $class = uniqid(), $method = uniqid(), $exitCode = rand(1, PHP_INT_MAX), $output = uniqid()))->then->array($score->getLastUncompleteMethod())->isEqualTo(array('file' => $file, 'class' => $class, 'method' => $method, 'exitCode' => $exitCode, 'output' => $output))->if($score->addUncompletedMethod($otherFile = uniqid(), $otherClass = uniqid(), $otherMethod = uniqid(), $otherExitCode = rand(1, PHP_INT_MAX), $otherOutput = uniqid()))->then->array($score->getLastUncompleteMethod())->isEqualTo(array('file' => $otherFile, 'class' => $otherClass, 'method' => $otherMethod, 'exitCode' => $otherExitCode, 'output' => $otherOutput));
 }