Adding test to make sure tags that are unknown are not removed.

This commit is contained in:
mark_story 2010-10-10 12:24:37 -04:00
parent ad367fed9a
commit 27a4f3c0d7

View file

@ -133,6 +133,18 @@ class ConsoleOutputTest extends CakeTestCase {
$this->output->write('<error>Error:</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("<red> Something bad");
$this->output->write('<red> Something bad', false);
}
/**
* test formatting with custom styles.
*