summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Api
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Api')
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Address/DependentPhoneNumberTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/AddressTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/ApplicationTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/AuthorizedConnectAppTest.php10
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/LocalTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/MobileTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountryTest.php10
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackSummaryTest.php12
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackTest.php12
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Call/NotificationTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Call/RecordingTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/CallTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Conference/ParticipantTest.php18
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/ConferenceTest.php10
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/ConnectAppTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/LocalTest.php10
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/MobileTest.php10
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/TollFreeTest.php10
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumberTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php18
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Message/FeedbackTest.php4
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Message/MediaTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/MessageTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/NewKeyTest.php4
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/NewSigningKeyTest.php4
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/NotificationTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/OutgoingCallerIdTest.php18
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Queue/MemberTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/QueueTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Recording/TranscriptionTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/RecordingTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/SandboxTest.php8
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/ShortCodeTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/SigningKeyTest.php18
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialList/CredentialTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialListTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/CredentialListMappingTest.php18
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingTest.php18
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Sip/DomainTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlList/IpAddressTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlListTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/TokenTest.php4
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/TranscriptionTest.php14
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/AllTimeTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/DailyTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/LastMonthTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/MonthlyTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/ThisMonthTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/TodayTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YearlyTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YesterdayTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/RecordTest.php6
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/Usage/TriggerTest.php22
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/ValidationRequestTest.php4
-rw-r--r--Twilio/Tests/Integration/Api/V2010/AccountTest.php18
56 files changed, 360 insertions, 360 deletions
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Address/DependentPhoneNumberTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Address/DependentPhoneNumberTest.php
index 558b53f..d8b500a 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Address/DependentPhoneNumberTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Address/DependentPhoneNumberTest.php
@@ -26,10 +26,10 @@ class DependentPhoneNumberTest 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/DependentPhoneNumbers.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -70,7 +70,7 @@ class DependentPhoneNumberTest extends HolodeckTestCase {
->addresses("ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->dependentPhoneNumbers->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
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() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/ApplicationTest.php b/Twilio/Tests/Integration/Api/V2010/Account/ApplicationTest.php
index fa6cb04..840c0c9 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/ApplicationTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/ApplicationTest.php
@@ -29,12 +29,12 @@ class ApplicationTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -81,10 +81,10 @@ class ApplicationTest 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/Applications/APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -108,10 +108,10 @@ class ApplicationTest 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/Applications/APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -158,10 +158,10 @@ class ApplicationTest 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/Applications.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -211,7 +211,7 @@ class ApplicationTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->applications->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -250,10 +250,10 @@ class ApplicationTest 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/Applications/APaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/AuthorizedConnectAppTest.php b/Twilio/Tests/Integration/Api/V2010/Account/AuthorizedConnectAppTest.php
index 1b1cbbc..d1211a8 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/AuthorizedConnectAppTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/AuthorizedConnectAppTest.php
@@ -25,10 +25,10 @@ class AuthorizedConnectAppTest 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/AuthorizedConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -67,10 +67,10 @@ class AuthorizedConnectAppTest 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/AuthorizedConnectApps.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -112,7 +112,7 @@ class AuthorizedConnectAppTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->authorizedConnectApps->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/LocalTest.php b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/LocalTest.php
index 1bf5f9d..c842214 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/LocalTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/LocalTest.php
@@ -26,10 +26,10 @@ class LocalTest 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/AvailablePhoneNumbers/US/Local.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -76,7 +76,7 @@ class LocalTest extends HolodeckTestCase {
->availablePhoneNumbers("US")
->local->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/MobileTest.php b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/MobileTest.php
index 5cf6c41..1721d41 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/MobileTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/MobileTest.php
@@ -26,10 +26,10 @@ class MobileTest 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/AvailablePhoneNumbers/US/Mobile.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -75,7 +75,7 @@ class MobileTest extends HolodeckTestCase {
->availablePhoneNumbers("US")
->mobile->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeTest.php b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeTest.php
index 9c24574..5d52767 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeTest.php
@@ -26,10 +26,10 @@ class TollFreeTest 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/AvailablePhoneNumbers/US/TollFree.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -75,7 +75,7 @@ class TollFreeTest extends HolodeckTestCase {
->availablePhoneNumbers("US")
->tollFree->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountryTest.php b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountryTest.php
index d1b5214..0ecf8cd 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountryTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/AvailablePhoneNumberCountryTest.php
@@ -25,10 +25,10 @@ class AvailablePhoneNumberCountryTest 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/AvailablePhoneNumbers.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -65,7 +65,7 @@ class AvailablePhoneNumberCountryTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->availablePhoneNumbers->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -104,10 +104,10 @@ class AvailablePhoneNumberCountryTest 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/AvailablePhoneNumbers/US.json'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackSummaryTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackSummaryTest.php
index 742ca48..1d8e08f 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackSummaryTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackSummaryTest.php
@@ -31,12 +31,12 @@ class FeedbackSummaryTest extends HolodeckTestCase {
'EndDate' => new \DateTime('2008-01-02'),
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/FeedbackSummary.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -85,10 +85,10 @@ class FeedbackSummaryTest 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/Calls/FeedbackSummary/FSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -137,10 +137,10 @@ class FeedbackSummaryTest 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/Calls/FeedbackSummary/FSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackTest.php
index 1fa5db1..fabd7f2 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Call/FeedbackTest.php
@@ -30,12 +30,12 @@ class FeedbackTest extends HolodeckTestCase {
'QualityScore' => 1,
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Feedback.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -73,10 +73,10 @@ class FeedbackTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Feedback.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -118,12 +118,12 @@ class FeedbackTest extends HolodeckTestCase {
'QualityScore' => 1,
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Feedback.json',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Call/NotificationTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Call/NotificationTest.php
index bf71f76..ece3d40 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Call/NotificationTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Call/NotificationTest.php
@@ -26,10 +26,10 @@ class NotificationTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -75,10 +75,10 @@ class NotificationTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -104,10 +104,10 @@ class NotificationTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -152,7 +152,7 @@ class NotificationTest extends HolodeckTestCase {
->calls("CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->notifications->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Call/RecordingTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Call/RecordingTest.php
index 43e0451..48e11f9 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Call/RecordingTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Call/RecordingTest.php
@@ -26,10 +26,10 @@ class RecordingTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -67,10 +67,10 @@ class RecordingTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -96,10 +96,10 @@ class RecordingTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -139,7 +139,7 @@ class RecordingTest extends HolodeckTestCase {
->calls("CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->recordings->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/CallTest.php b/Twilio/Tests/Integration/Api/V2010/Account/CallTest.php
index 3554cb2..091bbe5 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/CallTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/CallTest.php
@@ -30,12 +30,12 @@ class CallTest extends HolodeckTestCase {
'From' => "+987654321",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -90,10 +90,10 @@ class CallTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -117,10 +117,10 @@ class CallTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -175,10 +175,10 @@ class CallTest 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/Calls.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -236,7 +236,7 @@ class CallTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->calls->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -275,10 +275,10 @@ class CallTest 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/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Conference/ParticipantTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Conference/ParticipantTest.php
index 079e4a7..557a814 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Conference/ParticipantTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Conference/ParticipantTest.php
@@ -26,10 +26,10 @@ class ParticipantTest 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/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -71,12 +71,12 @@ class ParticipantTest extends HolodeckTestCase {
'Muted' => True,
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
@@ -114,10 +114,10 @@ class ParticipantTest 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/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -143,10 +143,10 @@ class ParticipantTest 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/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -186,7 +186,7 @@ class ParticipantTest extends HolodeckTestCase {
->conferences("CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->participants->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/ConferenceTest.php b/Twilio/Tests/Integration/Api/V2010/Account/ConferenceTest.php
index 46f73b9..36f6aeb 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/ConferenceTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/ConferenceTest.php
@@ -25,10 +25,10 @@ class ConferenceTest 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/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -66,10 +66,10 @@ class ConferenceTest 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/Conferences.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -110,7 +110,7 @@ class ConferenceTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->conferences->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/ConnectAppTest.php b/Twilio/Tests/Integration/Api/V2010/Account/ConnectAppTest.php
index 543079f..48bc4be 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/ConnectAppTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/ConnectAppTest.php
@@ -25,10 +25,10 @@ class ConnectAppTest 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/ConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -66,10 +66,10 @@ class ConnectAppTest 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/ConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -107,10 +107,10 @@ class ConnectAppTest 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/ConnectApps.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -151,7 +151,7 @@ class ConnectAppTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->connectApps->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/LocalTest.php b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/LocalTest.php
index 6c08f70..eff088c 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/LocalTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/LocalTest.php
@@ -26,10 +26,10 @@ class LocalTest 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/IncomingPhoneNumbers/Local.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -89,7 +89,7 @@ class LocalTest extends HolodeckTestCase {
->incomingPhoneNumbers
->local->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -134,12 +134,12 @@ class LocalTest extends HolodeckTestCase {
'PhoneNumber' => "+987654321",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/MobileTest.php b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/MobileTest.php
index 864c763..0c2bffc 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/MobileTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/MobileTest.php
@@ -26,10 +26,10 @@ class MobileTest 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/IncomingPhoneNumbers/Mobile.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -89,7 +89,7 @@ class MobileTest extends HolodeckTestCase {
->incomingPhoneNumbers
->mobile->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -134,12 +134,12 @@ class MobileTest extends HolodeckTestCase {
'PhoneNumber' => "+987654321",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/TollFreeTest.php b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/TollFreeTest.php
index bef6072..f965fed 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/TollFreeTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumber/TollFreeTest.php
@@ -26,10 +26,10 @@ class TollFreeTest 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/IncomingPhoneNumbers/TollFree.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -89,7 +89,7 @@ class TollFreeTest extends HolodeckTestCase {
->incomingPhoneNumbers
->tollFree->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -134,12 +134,12 @@ class TollFreeTest extends HolodeckTestCase {
'PhoneNumber' => "+987654321",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/TollFree.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumberTest.php b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumberTest.php
index d07b8f2..c6e3bfb 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumberTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/IncomingPhoneNumberTest.php
@@ -25,10 +25,10 @@ class IncomingPhoneNumberTest 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/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -84,10 +84,10 @@ class IncomingPhoneNumberTest 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/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -143,10 +143,10 @@ class IncomingPhoneNumberTest 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/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -170,10 +170,10 @@ class IncomingPhoneNumberTest 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/IncomingPhoneNumbers.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -232,7 +232,7 @@ class IncomingPhoneNumberTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->incomingPhoneNumbers->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -271,10 +271,10 @@ class IncomingPhoneNumberTest 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/IncomingPhoneNumbers.json'
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php
index 3267b19..46601c0 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php
@@ -25,10 +25,10 @@ class KeyTest 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/Keys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -59,10 +59,10 @@ class KeyTest 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/Keys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -93,10 +93,10 @@ class KeyTest 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/Keys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -120,10 +120,10 @@ class KeyTest 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/Keys.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -154,7 +154,7 @@ class KeyTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->keys->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Message/FeedbackTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Message/FeedbackTest.php
index 42d5f7a..cab6779 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Message/FeedbackTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Message/FeedbackTest.php
@@ -26,9 +26,9 @@ class FeedbackTest 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/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Feedback.json'
- )));
+ ));
}
} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Message/MediaTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Message/MediaTest.php
index 4b330db..6524f07 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Message/MediaTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Message/MediaTest.php
@@ -26,10 +26,10 @@ class MediaTest 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/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media/MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -55,10 +55,10 @@ class MediaTest 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/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media/MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -94,10 +94,10 @@ class MediaTest 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/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -135,7 +135,7 @@ class MediaTest extends HolodeckTestCase {
->messages("MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->media->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/MessageTest.php b/Twilio/Tests/Integration/Api/V2010/Account/MessageTest.php
index 50957b6..ac905f4 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/MessageTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/MessageTest.php
@@ -29,12 +29,12 @@ class MessageTest extends HolodeckTestCase {
'To' => "+123456789",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -82,10 +82,10 @@ class MessageTest 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/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -109,10 +109,10 @@ class MessageTest 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/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -160,10 +160,10 @@ class MessageTest 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/Messages.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -214,7 +214,7 @@ class MessageTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->messages->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -253,10 +253,10 @@ class MessageTest 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/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/NewKeyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/NewKeyTest.php
index 308efad..5a50dd5 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/NewKeyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/NewKeyTest.php
@@ -25,10 +25,10 @@ class NewKeyTest 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/Keys.json'
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/NewSigningKeyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/NewSigningKeyTest.php
index 071bf97..130d919 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/NewSigningKeyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/NewSigningKeyTest.php
@@ -25,10 +25,10 @@ class NewSigningKeyTest 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/SigningKeys.json'
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/NotificationTest.php b/Twilio/Tests/Integration/Api/V2010/Account/NotificationTest.php
index 048547e..5afdab3 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/NotificationTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/NotificationTest.php
@@ -25,10 +25,10 @@ class NotificationTest 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/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -72,10 +72,10 @@ class NotificationTest 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/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -99,10 +99,10 @@ class NotificationTest 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/Notifications.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -146,7 +146,7 @@ class NotificationTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->notifications->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/OutgoingCallerIdTest.php b/Twilio/Tests/Integration/Api/V2010/Account/OutgoingCallerIdTest.php
index 21988c8..be75a0b 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/OutgoingCallerIdTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/OutgoingCallerIdTest.php
@@ -25,10 +25,10 @@ class OutgoingCallerIdTest 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/OutgoingCallerIds/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -62,10 +62,10 @@ class OutgoingCallerIdTest 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/OutgoingCallerIds/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -99,10 +99,10 @@ class OutgoingCallerIdTest 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/OutgoingCallerIds/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -126,10 +126,10 @@ class OutgoingCallerIdTest 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/OutgoingCallerIds.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -166,7 +166,7 @@ class OutgoingCallerIdTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->outgoingCallerIds->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Queue/MemberTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Queue/MemberTest.php
index aaea0ce..39ce49c 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Queue/MemberTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Queue/MemberTest.php
@@ -26,10 +26,10 @@ class MemberTest 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/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -68,12 +68,12 @@ class MemberTest extends HolodeckTestCase {
'Method' => "GET",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
@@ -107,10 +107,10 @@ class MemberTest 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/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -146,7 +146,7 @@ class MemberTest extends HolodeckTestCase {
->queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->members->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/QueueTest.php b/Twilio/Tests/Integration/Api/V2010/Account/QueueTest.php
index 6469e64..be651d9 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/QueueTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/QueueTest.php
@@ -25,10 +25,10 @@ class QueueTest 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/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -64,10 +64,10 @@ class QueueTest 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/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -103,10 +103,10 @@ class QueueTest 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/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -130,10 +130,10 @@ class QueueTest 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/Queues.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -172,7 +172,7 @@ class QueueTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->queues->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -211,10 +211,10 @@ class QueueTest 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/Queues.json'
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Recording/TranscriptionTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Recording/TranscriptionTest.php
index 018c317..339ebef 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Recording/TranscriptionTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Recording/TranscriptionTest.php
@@ -26,10 +26,10 @@ class TranscriptionTest 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/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Transcriptions/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -71,10 +71,10 @@ class TranscriptionTest 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/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Transcriptions/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -100,10 +100,10 @@ class TranscriptionTest 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/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Transcriptions.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -147,7 +147,7 @@ class TranscriptionTest extends HolodeckTestCase {
->recordings("REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->transcriptions->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/RecordingTest.php b/Twilio/Tests/Integration/Api/V2010/Account/RecordingTest.php
index cd0d6cb..0fe80c2 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/RecordingTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/RecordingTest.php
@@ -25,10 +25,10 @@ class RecordingTest 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/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -68,10 +68,10 @@ class RecordingTest 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/Recordings/REaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -95,10 +95,10 @@ class RecordingTest 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/Recordings.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -141,7 +141,7 @@ class RecordingTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->recordings->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/SandboxTest.php b/Twilio/Tests/Integration/Api/V2010/Account/SandboxTest.php
index 3c9bef6..029d671 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/SandboxTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/SandboxTest.php
@@ -25,10 +25,10 @@ class SandboxTest 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/Sandbox.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -69,10 +69,10 @@ class SandboxTest 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/Sandbox.json'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/ShortCodeTest.php b/Twilio/Tests/Integration/Api/V2010/Account/ShortCodeTest.php
index 81577d1..0037c37 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/ShortCodeTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/ShortCodeTest.php
@@ -25,10 +25,10 @@ class ShortCodeTest 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/SMS/ShortCodes/SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -67,10 +67,10 @@ class ShortCodeTest 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/SMS/ShortCodes/SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -109,10 +109,10 @@ class ShortCodeTest 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/SMS/ShortCodes.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -154,7 +154,7 @@ class ShortCodeTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->shortCodes->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/SigningKeyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/SigningKeyTest.php
index 26cc979..8312836 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/SigningKeyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/SigningKeyTest.php
@@ -25,10 +25,10 @@ class SigningKeyTest 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/SigningKeys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -59,10 +59,10 @@ class SigningKeyTest 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/SigningKeys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -93,10 +93,10 @@ class SigningKeyTest 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/SigningKeys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -120,10 +120,10 @@ class SigningKeyTest 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/SigningKeys.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -154,7 +154,7 @@ class SigningKeyTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->signingKeys->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialList/CredentialTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialList/CredentialTest.php
index 476acc6..d2e6e7d 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialList/CredentialTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialList/CredentialTest.php
@@ -27,10 +27,10 @@ class CredentialTest 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/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -69,7 +69,7 @@ class CredentialTest extends HolodeckTestCase {
->credentialLists("CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->credentials->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -117,12 +117,12 @@ class CredentialTest extends HolodeckTestCase {
'Password' => "password",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -160,10 +160,10 @@ class CredentialTest 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/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -206,12 +206,12 @@ class CredentialTest extends HolodeckTestCase {
'Password' => "password",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
@@ -249,10 +249,10 @@ class CredentialTest 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/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialListTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialListTest.php
index 5a4df9b..3a4ac2d 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialListTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Sip/CredentialListTest.php
@@ -26,10 +26,10 @@ class CredentialListTest 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/SIP/CredentialLists.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -64,7 +64,7 @@ class CredentialListTest extends HolodeckTestCase {
->sip
->credentialLists->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -104,12 +104,12 @@ class CredentialListTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -147,10 +147,10 @@ class CredentialListTest 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/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -192,12 +192,12 @@ class CredentialListTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
@@ -235,10 +235,10 @@ class CredentialListTest 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/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/CredentialListMappingTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/CredentialListMappingTest.php
index aa5e7ba..e37e35d 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/CredentialListMappingTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/CredentialListMappingTest.php
@@ -31,12 +31,12 @@ class CredentialListMappingTest extends HolodeckTestCase {
'CredentialListSid' => "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -76,10 +76,10 @@ class CredentialListMappingTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -115,7 +115,7 @@ class CredentialListMappingTest extends HolodeckTestCase {
->domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->credentialListMappings->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -153,10 +153,10 @@ class CredentialListMappingTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -196,10 +196,10 @@ class CredentialListMappingTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingTest.php
index d4958f9..f46c52c 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingTest.php
@@ -27,10 +27,10 @@ class IpAccessControlListMappingTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlListMappings/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -74,12 +74,12 @@ class IpAccessControlListMappingTest extends HolodeckTestCase {
'IpAccessControlListSid' => "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlListMappings.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -119,10 +119,10 @@ class IpAccessControlListMappingTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlListMappings.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -163,7 +163,7 @@ class IpAccessControlListMappingTest extends HolodeckTestCase {
->domains("SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->ipAccessControlListMappings->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -206,10 +206,10 @@ class IpAccessControlListMappingTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlListMappings/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Sip/DomainTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Sip/DomainTest.php
index e9d25e5..f799385 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Sip/DomainTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Sip/DomainTest.php
@@ -26,10 +26,10 @@ class DomainTest 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/SIP/Domains.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -74,7 +74,7 @@ class DomainTest extends HolodeckTestCase {
->sip
->domains->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -114,12 +114,12 @@ class DomainTest extends HolodeckTestCase {
'DomainName' => "domainName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -167,10 +167,10 @@ class DomainTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -218,10 +218,10 @@ class DomainTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -269,10 +269,10 @@ class DomainTest 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/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlList/IpAddressTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlList/IpAddressTest.php
index 2b7b0e0..cf7d2e6 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlList/IpAddressTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlList/IpAddressTest.php
@@ -27,10 +27,10 @@ class IpAddressTest 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/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -70,7 +70,7 @@ class IpAddressTest extends HolodeckTestCase {
->ipAccessControlLists("ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->ipAddresses->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -118,12 +118,12 @@ class IpAddressTest extends HolodeckTestCase {
'IpAddress' => "ipAddress",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -162,10 +162,10 @@ class IpAddressTest 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/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -204,10 +204,10 @@ class IpAddressTest 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/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -246,10 +246,10 @@ class IpAddressTest 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/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlListTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlListTest.php
index 1893389..8e8a9f0 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlListTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Sip/IpAccessControlListTest.php
@@ -26,10 +26,10 @@ class IpAccessControlListTest 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/SIP/IpAccessControlLists.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -69,7 +69,7 @@ class IpAccessControlListTest extends HolodeckTestCase {
->sip
->ipAccessControlLists->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -114,12 +114,12 @@ class IpAccessControlListTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -157,10 +157,10 @@ class IpAccessControlListTest 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/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -202,12 +202,12 @@ class IpAccessControlListTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
@@ -245,10 +245,10 @@ class IpAccessControlListTest 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/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/TokenTest.php b/Twilio/Tests/Integration/Api/V2010/Account/TokenTest.php
index b1c32f8..17c4fe9 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/TokenTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/TokenTest.php
@@ -25,10 +25,10 @@ class TokenTest 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/Tokens.json'
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/TranscriptionTest.php b/Twilio/Tests/Integration/Api/V2010/Account/TranscriptionTest.php
index 744f282..cedad6c 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/TranscriptionTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/TranscriptionTest.php
@@ -25,10 +25,10 @@ class TranscriptionTest 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/Transcriptions/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -68,10 +68,10 @@ class TranscriptionTest 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/Transcriptions/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -95,10 +95,10 @@ class TranscriptionTest 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/Transcriptions.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -141,7 +141,7 @@ class TranscriptionTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->transcriptions->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/AllTimeTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/AllTimeTest.php
index 46d56c7..215e2e5 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/AllTimeTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/AllTimeTest.php
@@ -27,10 +27,10 @@ class AllTimeTest 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/Usage/Records/AllTime.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class AllTimeTest extends HolodeckTestCase {
->records
->allTime->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/DailyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/DailyTest.php
index 2936004..700a364 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/DailyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/DailyTest.php
@@ -27,10 +27,10 @@ class DailyTest 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/Usage/Records/Daily.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class DailyTest extends HolodeckTestCase {
->records
->daily->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/LastMonthTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/LastMonthTest.php
index f7f622c..f60bffe 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/LastMonthTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/LastMonthTest.php
@@ -27,10 +27,10 @@ class LastMonthTest 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/Usage/Records/LastMonth.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class LastMonthTest extends HolodeckTestCase {
->records
->lastMonth->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/MonthlyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/MonthlyTest.php
index 819c6c7..d14e520 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/MonthlyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/MonthlyTest.php
@@ -27,10 +27,10 @@ class MonthlyTest 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/Usage/Records/Monthly.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class MonthlyTest extends HolodeckTestCase {
->records
->monthly->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/ThisMonthTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/ThisMonthTest.php
index f5d4d0b..0f5a68b 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/ThisMonthTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/ThisMonthTest.php
@@ -27,10 +27,10 @@ class ThisMonthTest 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/Usage/Records/ThisMonth.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class ThisMonthTest extends HolodeckTestCase {
->records
->thisMonth->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/TodayTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/TodayTest.php
index aa6f6b7..4739d15 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/TodayTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/TodayTest.php
@@ -27,10 +27,10 @@ class TodayTest 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/Usage/Records/Today.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class TodayTest extends HolodeckTestCase {
->records
->today->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YearlyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YearlyTest.php
index 0c455fb..f4f3841 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YearlyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YearlyTest.php
@@ -27,10 +27,10 @@ class YearlyTest 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/Usage/Records/Yearly.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class YearlyTest extends HolodeckTestCase {
->records
->yearly->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YesterdayTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YesterdayTest.php
index 464dfdf..be90946 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YesterdayTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/Record/YesterdayTest.php
@@ -27,10 +27,10 @@ class YesterdayTest 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/Usage/Records/Yesterday.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -85,7 +85,7 @@ class YesterdayTest extends HolodeckTestCase {
->records
->yesterday->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/RecordTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/RecordTest.php
index 7d3fea0..5d73bdc 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/RecordTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/RecordTest.php
@@ -26,10 +26,10 @@ class RecordTest 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/Usage/Records.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -83,7 +83,7 @@ class RecordTest extends HolodeckTestCase {
->usage
->records->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/Usage/TriggerTest.php b/Twilio/Tests/Integration/Api/V2010/Account/Usage/TriggerTest.php
index 08beae4..8b8fea0 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/Usage/TriggerTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/Usage/TriggerTest.php
@@ -26,10 +26,10 @@ class TriggerTest 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/Usage/Triggers/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -74,10 +74,10 @@ class TriggerTest 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/Usage/Triggers/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -122,10 +122,10 @@ class TriggerTest 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/Usage/Triggers/UTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -157,12 +157,12 @@ class TriggerTest extends HolodeckTestCase {
'UsageCategory' => "authy-authentications",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage/Triggers.json',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -207,10 +207,10 @@ class TriggerTest 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/Usage/Triggers.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -257,7 +257,7 @@ class TriggerTest extends HolodeckTestCase {
->usage
->triggers->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/ValidationRequestTest.php b/Twilio/Tests/Integration/Api/V2010/Account/ValidationRequestTest.php
index cd3b362..1013620 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/ValidationRequestTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/ValidationRequestTest.php
@@ -29,11 +29,11 @@ class ValidationRequestTest extends HolodeckTestCase {
'PhoneNumber' => "+987654321",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json',
null,
$values
- )));
+ ));
}
} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Api/V2010/AccountTest.php b/Twilio/Tests/Integration/Api/V2010/AccountTest.php
index f47b08d..1077a06 100644
--- a/Twilio/Tests/Integration/Api/V2010/AccountTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/AccountTest.php
@@ -24,10 +24,10 @@ class AccountTest 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.json'
- )));
+ ));
}
public function testCreateResponse() {
@@ -73,10 +73,10 @@ class AccountTest 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.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -122,10 +122,10 @@ class AccountTest 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.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -183,7 +183,7 @@ class AccountTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -220,10 +220,10 @@ class AccountTest 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.json'
- )));
+ ));
}
public function testUpdateResponse() {