public function OutputTest::testWriteWithInvalidStyle in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Output/OutputTest.php \Symfony\Component\Console\Tests\Output\OutputTest::testWriteWithInvalidStyle()
File
- vendor/
symfony/ console/ Tests/ Output/ OutputTest.php, line 129
Class
Namespace
Symfony\Component\Console\Tests\OutputCode
public function testWriteWithInvalidStyle() {
$output = new TestOutput();
$output
->clear();
$output
->write('<bar>foo</bar>');
$this
->assertEquals('<bar>foo</bar>', $output->output, '->write() do nothing when a style does not exist');
$output
->clear();
$output
->writeln('<bar>foo</bar>');
$this
->assertEquals("<bar>foo</bar>\n", $output->output, '->writeln() do nothing when a style does not exist');
}