Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 public function testShouldNotHaveToPassHttpClientToConstructor()
 {
     $client = new Client($this->getWSDLPath());
     $this->assertInstanceOf('Salesforce\\HttpClient\\HttpClient', $client->getHttpClient());
 }