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