Exemplo n.º 1
0
 /**
  * @param string $provider
  * @return ProviderInterface
  * @throws InvalidProviderException
  */
 public static function load($provider)
 {
     return AbstractProvider::factory($provider);
 }
Exemplo n.º 2
0
 /**
  * @dataProvider getValidProviders
  */
 public function testValidProviderLoader($provider, $class)
 {
     $obj = AbstractProvider::factory($provider);
     $this->assertInstanceOf($class, $obj);
     $this->assertInstanceOf('Jacoz\\ItunesApi\\Providers\\ProviderInterface', $obj);
 }