Skip to content

Commit

Permalink
Adding tests for plain output.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 23, 2010
1 parent a5dd06b commit 68e176b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cake/tests/cases/console/libs/console_output.test.php
Expand Up @@ -213,4 +213,16 @@ function testOutputAsRaw() {
$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);
}
}

0 comments on commit 68e176b

Please sign in to comment.