mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Adding tests for plain output.
This commit is contained in:
parent
a5dd06b54c
commit
68e176b515
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue