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