Beispiel #1
0
 public function testConfigurationDefaults()
 {
     $client = new Uber();
     $this->assertEquals(null, $client->getAccessToken());
     $this->assertEquals(null, $client->getServerToken());
     $this->assertEquals(false, $client->getUseSandbox());
     $this->assertEquals('v1.2', $client->getVersion());
     $this->assertEquals('en_US', $client->getLocale());
 }
Beispiel #2
0
 public function test_Configuration()
 {
     $client = new Uber(['access_token' => getenv('UBER_ACCESS_TOKEN'), 'server_token' => getenv('UBER_SERVER_TOKEN'), 'use_sandbox' => getenv('UBER_USE_SANDBOX'), 'version' => getenv('UBER_VERSION'), 'locale' => getenv('UBER_LOCALE')]);
     $this->assertEquals($client->getAccessToken(), getenv('UBER_ACCESS_TOKEN'));
     $this->assertEquals($client->getServerToken(), getenv('UBER_SERVER_TOKEN'));
     $this->assertEquals($client->getUseSandbox(), getenv('UBER_USE_SANDBOX'));
     $this->assertEquals($client->getVersion(), getenv('UBER_VERSION'));
     $this->assertEquals($client->getLocale(), getenv('UBER_LOCALE'));
 }