public function testSetInfoWriter() { $this->given($runner = new testedClass(uniqid()))->then->object($runner->setInfoWriter($errorWriter = new atoum\writers\std\err()))->isIdenticalTo($runner)->object($runner->getInfoWriter())->isIdenticalTo($errorWriter)->given($defaultInfoWriter = new atoum\writers\std\out(), $defaultInfoWriter->addDecorator(new writer\decorators\rtrim())->addDecorator(new writer\decorators\eol())->addDecorator(new atoum\cli\clear())->addDecorator(new cli\colorizer('0;32')))->then->object($runner->setInfoWriter())->isIdenticalTo($runner)->object($runner->getInfoWriter())->isEqualTo($defaultInfoWriter); }