public function __construct($apiKey) { $this->transactionApi = ApiFactory::make($apiKey, 'transaction'); }
public function testThrowExceptionOnWrongResource() { $this->expectException(InvalidResourceException::class); ApiFactory::make('testkey', 'unvalid'); }