/** * {@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)); }