From 68e176b515fbdf4c3212ff696d4f902f01e1984b Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 22 Oct 2010 23:32:01 -0400 Subject: [PATCH] Adding tests for plain output. --- .../tests/cases/console/libs/console_output.test.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cake/tests/cases/console/libs/console_output.test.php b/cake/tests/cases/console/libs/console_output.test.php index a6ee59a24..37fee8f5c 100644 --- a/cake/tests/cases/console/libs/console_output.test.php +++ b/cake/tests/cases/console/libs/console_output.test.php @@ -213,4 +213,16 @@ class ConsoleOutputTest extends CakeTestCase { $this->output->write('Bad 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('Bad Regular', false); + } } \ No newline at end of file