/** * Test doExecute. * * @return void * * @since 2.0 */ public function testDoExecute() { $this->instance->addCommand(new FooCommand()); $result = $this->instance->execute(); // Return exit code. $this->assertEquals(123, $result, 'Return value wrong'); }