diff --git a/cake/tests/cases/console/console_output.test.php b/cake/tests/cases/console/console_output.test.php index 166830f2b..e4a63b478 100644 --- a/cake/tests/cases/console/console_output.test.php +++ b/cake/tests/cases/console/console_output.test.php @@ -133,6 +133,18 @@ class ConsoleOutputTest extends CakeTestCase { $this->output->write('Error: Something bad', false); } +/** + * test that formatting doesn't eat tags it doesn't know about. + * + * @return void + */ + function testFormattingNotEatingTags() { + $this->output->expects($this->once())->method('_write') + ->with(" Something bad"); + + $this->output->write(' Something bad', false); + } + /** * test formatting with custom styles. *