mageekguy\atoum\runner::canAddTest PHP 메소드

canAddTest() 공개 메소드

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

Usage Example

예제 #1
0
파일: runner.php 프로젝트: ssgonchar/atoum
 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