Ejemplo n.º 1
0
 /**
  * Tests to make sure string is not automatically rendered in non-interactive mode
  *
  * @return  void
  **/
 public function testOutputNonInteractiveDoesNotAutmaticallyRender()
 {
     $output = new Output();
     $output->makeNonInteractive();
     $string = $this->getBuffered(function () use($output) {
         $output->addLine('Hello, friend');
     });
     $this->assertEquals('', $string, 'Output did not have the expected empty string');
 }