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