/** * Nested call the command. * * @return void * * @since 1.0 */ public function testNestedCall() { $this->instance->addCommand(new FooCommand()); $this->instance->input->args = array('foo', 'aaa', 'bbb'); $code = $this->instance->execute(); $output = $this->instance->getOutput()->getOutput(); $this->assertEquals(99, $code, 'return code not matched.'); $this->assertEquals('Bbb Command', $output, 'Output not matched.'); }