public function __construct(ClientInterface $client) { $this->client = $client; $this->type = UserProvider::getTypeByName($client->id); }
public function testGetTypeByName() { $type = UserProvider::getTypeByName('twitter'); expect($type)->equals(UserProvider::TYPE_TWITTER); }