public function testAdd() { $api = Mockery::mock('PhpTest\\Api\\ApiInterface'); $manager = new ApiManager(); $manager->add('foo', $api); $this->assertSame($api, $manager->get('foo')); }
/** * {@inheritdoc} */ public function execute(InputInterface $input, OutputInterface $output) { $api = $this->manager->get($input->getOption(self::OPT_API)); $api->load($this->loaders, $this->suite); }