mageekguy\atoum\tests\units\runner::testAddTest PHP Method

testAddTest() public method

public testAddTest ( )
    public function testAddTest()
    {
        $this->if($runner = new testedClass())->then->object($runner->addTest($testPath1 = uniqid()))->isIdenticalTo($runner)->array($runner->getTestPaths())->isEqualTo(array($testPath1))->object($runner->addTest($testPath2 = uniqid()))->isIdenticalTo($runner)->array($runner->getTestPaths())->isEqualTo(array($testPath1, $testPath2))->object($runner->addTest($testPath1))->isIdenticalTo($runner)->array($runner->getTestPaths())->isEqualTo(array($testPath1, $testPath2))->object($runner->addTest($testPath3 = new \splFileInfo(__FILE__)))->isIdenticalTo($runner)->array($runner->getTestPaths())->isEqualTo(array($testPath1, $testPath2, (string) $testPath3))->if($runner->canNotAddTest())->then->object($runner->addTest($testPath4 = uniqid()))->isIdenticalTo($runner)->array($runner->getTestPaths())->isEqualTo(array($testPath1, $testPath2, (string) $testPath3))->if($runner->canAddTest())->then->object($runner->addTest($testPath4 = uniqid()))->isIdenticalTo($runner)->array($runner->getTestPaths())->isEqualTo(array($testPath1, $testPath2, (string) $testPath3, $testPath4));
    }