/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 * */ protected function setUp() { $command = new RootCommand('default', null, new TestStdout()); $command->addCommand('yoo', 'yoo desc')->setHandler(function ($command) { return 123; }); $this->instance = $command; }