summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php')
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php b/Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php
index e578f3b..608f0ae 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php
@@ -34,12 +34,12 @@ class AddressTest extends HolodeckTestCase {
'IsoCountry' => "US",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -78,10 +78,10 @@ class AddressTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -105,10 +105,10 @@ class AddressTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -147,10 +147,10 @@ class AddressTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -189,10 +189,10 @@ class AddressTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -234,7 +234,7 @@ class AddressTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->addresses->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {