/** * Instantiate a new Salesforce Bulk API * * @param Client $client */ public function __construct(Client $client) { $this->client = $client; $this->httpClient = $client->getHttpClient(); $this->endpoint = sprintf(self::ENDPOINT_PATTERN, $this->client->getServerInstance(), Client::API_VERSION); $this->httpClient->setBaseUrl($this->endpoint); }
public function testShouldNotHaveToPassHttpClientToConstructor() { $client = new Client($this->getWSDLPath()); $this->assertInstanceOf('Salesforce\\HttpClient\\HttpClient', $client->getHttpClient()); }