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

testAddReport() public method

public testAddReport ( )
    public function testAddReport()
    {
        $this->if($runner = new testedClass())->then->object($runner->addReport($report = new atoum\reports\realtime\cli()))->isIdenticalTo($runner)->array($runner->getReports())->isEqualTo(array($report))->array($runner->getObservers())->contains($report)->if($runner->setReport($otherReport = new atoum\reports\realtime\cli()))->then->object($runner->addReport($report = new atoum\reports\realtime\cli()))->isIdenticalTo($runner)->array($runner->getReports())->isEqualTo(array($otherReport))->array($runner->getObservers())->contains($otherReport);
    }