mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding test to make sure tags that are unknown are not removed.
This commit is contained in:
parent
ad367fed9a
commit
27a4f3c0d7
1 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue