Adding tests for plain output.

This commit is contained in:
mark_story 2010-10-22 23:32:01 -04:00
parent a5dd06b54c
commit 68e176b515

View file

@ -213,4 +213,16 @@ class ConsoleOutputTest extends CakeTestCase {
$this->output->write('<error>Bad</error> Regular', false);
}
/**
* test plain output.
*
* @return void
*/
function testOutputAsPlain() {
$this->output->outputAs(ConsoleOutput::PLAIN);
$this->output->expects($this->once())->method('_write')
->with('Bad Regular');
$this->output->write('<error>Bad</error> Regular', false);
}
}