/** * Create a new art loader * * @param \holyshared\fixture\Loader */ public function __construct(Loader $loader) { $this->output = new Output(); $this->output->sameLine(); $this->output->defaultTo('buffer'); $this->cli = new CLImate(); $this->cli->setOutput($this->output); $this->loader = $loader; }
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)); }