/** * testExecuteByPath * * @return void */ public function testExecuteByPath() { $this->instance->addCommand(new FooCommand()); $code = $this->instance->executeByPath('foo aaa bbb', array(), $this->instance->io); $output = $this->instance->io->getTestOutput(); $this->assertEquals(99, $code, 'return code not matched.'); $this->assertEquals('Bbb Command', $output, 'Output not matched.'); }