Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function load($path, array $arguments = [])
 {
     $content = $this->loader->load($path, $arguments);
     $this->cli->out($content);
     $bufferWriter = $this->output->get('buffer');
     return $bufferWriter->get();
 }
 public function setUp()
 {
     $this->app = $this->getMockBuilder(CliApp::class)->setMethods(['getCli'])->getMock();
     $output = new Output();
     $output->defaultTo('buffer');
     $this->buffer = $output->get('buffer');
     $cli = new CLImate();
     $cli->setOutput($output);
     $this->app->method('getCli')->will($this->returnValue($cli));
 }
Beispiel #3
0
 /**
  * Write line to writer once
  *
  * @param string|array $writer
  *
  * @return \League\CLImate\CLImate
  */
 public function to($writer)
 {
     $this->output->once($writer);
     return $this;
 }