out = new ConsoleOutput(); $this->err = new ConsoleOutput(); $io = new ConsoleIo($this->out, $this->err); $this->shell = new BakeQueueTaskShell($io); $this->shell->initialize(); } /** * @return void */ public function testGenerate() { $this->shell->runCommand(['generate', 'FooBar', '-d']); $output = $this->out->output(); $this->assertContains('Generating: QueueFooBarTask', $output); $this->assertContains('Generating: QueueFooBarTask test class', $output); } }