mageekguy\atoum\runner::canAddTest PHP Method

canAddTest() public method

public canAddTest ( )
    public function canAddTest()
    {
        $this->canAddTest = true;
        return $this;
    }

Usage Example

Beispiel #1
0
 public function testCanNotAddTest()
 {
     $this->if($runner = new testedClass())->then->object($runner->canNotAddTest())->isIdenticalTo($runner)->if($runner->addTest(uniqid()))->then->array($runner->getTestPaths())->isEmpty()->if($runner->canAddTest())->then->object($runner->canNotAddTest())->isIdenticalTo($runner)->if($runner->addTest(uniqid()))->then->array($runner->getTestPaths())->isEmpty();
 }
runner