You are here

public function OutputTest::testWriteWithInvalidStyle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

OutputTest

Namespace

Symfony\Component\Console\Tests\Output

Code

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');
}