summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration')
-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
-rw-r--r--Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php22
-rw-r--r--Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php18
-rw-r--r--Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php20
-rw-r--r--Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php22
-rw-r--r--Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php22
-rw-r--r--Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php22
-rw-r--r--Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php22
-rw-r--r--Twilio/Tests/Integration/Lookups/V1/PhoneNumberTest.php6
-rw-r--r--Twilio/Tests/Integration/Monitor/V1/AlertTest.php14
-rw-r--r--Twilio/Tests/Integration/Monitor/V1/EventTest.php10
-rw-r--r--Twilio/Tests/Integration/Pricing/V1/Messaging/CountryTest.php8
-rw-r--r--Twilio/Tests/Integration/Pricing/V1/PhoneNumber/CountryTest.php10
-rw-r--r--Twilio/Tests/Integration/Pricing/V1/Voice/CountryTest.php10
-rw-r--r--Twilio/Tests/Integration/Pricing/V1/Voice/NumberTest.php6
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/ActivityTest.php22
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/EventTest.php10
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/Task/ReservationTest.php14
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskChannelTest.php10
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsTest.php4
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsTest.php6
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueueTest.php22
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskTest.php22
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/ReservationTest.php14
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerChannelTest.php14
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerStatisticsTest.php4
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkersStatisticsTest.php4
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkerTest.php22
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsTest.php4
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkflowTest.php22
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkspaceStatisticsTest.php4
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php22
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php18
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php18
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php22
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php18
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/TrunkTest.php22
92 files changed, 625 insertions, 625 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() {
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php b/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php
index d57a03f..e901f75 100644
--- a/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php
+++ b/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php
@@ -24,10 +24,10 @@ class CredentialTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Credentials'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -62,7 +62,7 @@ class CredentialTest extends HolodeckTestCase {
$actual = $this->twilio->ipMessaging->v1->credentials->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -101,12 +101,12 @@ class CredentialTest extends HolodeckTestCase {
'Type' => "gcm",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Credentials',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -139,10 +139,10 @@ class CredentialTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -175,10 +175,10 @@ class CredentialTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -211,10 +211,10 @@ class CredentialTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php
index f754d9b..3d7eb17 100644
--- a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php
+++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/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://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -73,12 +73,12 @@ class MemberTest extends HolodeckTestCase {
'Identity' => "identity",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -118,10 +118,10 @@ class MemberTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -161,7 +161,7 @@ class MemberTest extends HolodeckTestCase {
->channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->members->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -200,10 +200,10 @@ class MemberTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php
index c78981f..9a8feac 100644
--- a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php
+++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php
@@ -26,10 +26,10 @@ class MessageTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testCreateRequest() {
@@ -46,12 +46,12 @@ class MessageTest extends HolodeckTestCase {
'Body' => "body",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages',
null,
$values
- )));
+ ));
}
public function testReadRequest() {
@@ -64,10 +64,10 @@ class MessageTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages'
- )));
+ ));
}
public function testDeleteRequest() {
@@ -80,10 +80,10 @@ class MessageTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateRequest() {
@@ -100,11 +100,11 @@ class MessageTest extends HolodeckTestCase {
'Body' => "body",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
null,
$values
- )));
+ ));
}
} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php
index e372b8d..4636bf1 100644
--- a/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php
+++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php
@@ -25,10 +25,10 @@ class ChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -70,10 +70,10 @@ class ChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -97,10 +97,10 @@ class ChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels'
- )));
+ ));
}
public function testCreateResponse() {
@@ -142,10 +142,10 @@ class ChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -188,7 +188,7 @@ class ChannelTest extends HolodeckTestCase {
$actual = $this->twilio->ipMessaging->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->channels->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -225,10 +225,10 @@ class ChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php
index 8ea8b86..3cb378e 100644
--- a/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php
+++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php
@@ -25,10 +25,10 @@ class RoleTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -69,10 +69,10 @@ class RoleTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -102,12 +102,12 @@ class RoleTest extends HolodeckTestCase {
'Permission' => array('permission'),
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -148,10 +148,10 @@ class RoleTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -193,7 +193,7 @@ class RoleTest extends HolodeckTestCase {
$actual = $this->twilio->ipMessaging->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->roles->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -235,12 +235,12 @@ class RoleTest extends HolodeckTestCase {
'Permission' => array('permission'),
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php
index 2a4f5eb..ada0643 100644
--- a/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php
+++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php
@@ -25,10 +25,10 @@ class UserTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -65,10 +65,10 @@ class UserTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -97,12 +97,12 @@ class UserTest extends HolodeckTestCase {
'RoleSid' => "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -139,10 +139,10 @@ class UserTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -180,7 +180,7 @@ class UserTest extends HolodeckTestCase {
$actual = $this->twilio->ipMessaging->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->users->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -217,10 +217,10 @@ class UserTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php b/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php
index 23db34f..741acf3 100644
--- a/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php
+++ b/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php
@@ -24,10 +24,10 @@ class ServiceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -70,10 +70,10 @@ class ServiceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -99,12 +99,12 @@ class ServiceTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -147,10 +147,10 @@ class ServiceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://ip-messaging.twilio.com/v1/Services'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -195,7 +195,7 @@ class ServiceTest extends HolodeckTestCase {
$actual = $this->twilio->ipMessaging->v1->services->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -230,10 +230,10 @@ class ServiceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Lookups/V1/PhoneNumberTest.php b/Twilio/Tests/Integration/Lookups/V1/PhoneNumberTest.php
index 73b4fd2..1c5060e 100644
--- a/Twilio/Tests/Integration/Lookups/V1/PhoneNumberTest.php
+++ b/Twilio/Tests/Integration/Lookups/V1/PhoneNumberTest.php
@@ -24,10 +24,10 @@ class PhoneNumberTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
- 'https://lookups.twilio.com/v1/PhoneNumbers/+987654321'
- )));
+ 'https://lookups.twilio.com/v1/PhoneNumbers/%2B987654321'
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Monitor/V1/AlertTest.php b/Twilio/Tests/Integration/Monitor/V1/AlertTest.php
index e29e615..2c3ea3e 100644
--- a/Twilio/Tests/Integration/Monitor/V1/AlertTest.php
+++ b/Twilio/Tests/Integration/Monitor/V1/AlertTest.php
@@ -24,10 +24,10 @@ class AlertTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -69,10 +69,10 @@ class AlertTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -94,10 +94,10 @@ class AlertTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://monitor.twilio.com/v1/Alerts'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -138,7 +138,7 @@ class AlertTest extends HolodeckTestCase {
$actual = $this->twilio->monitor->v1->alerts->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Monitor/V1/EventTest.php b/Twilio/Tests/Integration/Monitor/V1/EventTest.php
index 554811f..4e95e0e 100644
--- a/Twilio/Tests/Integration/Monitor/V1/EventTest.php
+++ b/Twilio/Tests/Integration/Monitor/V1/EventTest.php
@@ -24,10 +24,10 @@ class EventTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://monitor.twilio.com/v1/Events/AEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -74,10 +74,10 @@ class EventTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://monitor.twilio.com/v1/Events'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -126,7 +126,7 @@ class EventTest extends HolodeckTestCase {
$actual = $this->twilio->monitor->v1->events->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Pricing/V1/Messaging/CountryTest.php b/Twilio/Tests/Integration/Pricing/V1/Messaging/CountryTest.php
index a6e6210..ab863b6 100644
--- a/Twilio/Tests/Integration/Pricing/V1/Messaging/CountryTest.php
+++ b/Twilio/Tests/Integration/Pricing/V1/Messaging/CountryTest.php
@@ -25,10 +25,10 @@ class CountryTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://pricing.twilio.com/v1/Messaging/Countries'
- )));
+ ));
}
public function testFetchRequest() {
@@ -40,9 +40,9 @@ class CountryTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://pricing.twilio.com/v1/Messaging/Countries/US'
- )));
+ ));
}
} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Pricing/V1/PhoneNumber/CountryTest.php b/Twilio/Tests/Integration/Pricing/V1/PhoneNumber/CountryTest.php
index 143260c..a57318b 100644
--- a/Twilio/Tests/Integration/Pricing/V1/PhoneNumber/CountryTest.php
+++ b/Twilio/Tests/Integration/Pricing/V1/PhoneNumber/CountryTest.php
@@ -25,10 +25,10 @@ class CountryTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://pricing.twilio.com/v1/PhoneNumbers/Countries'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -59,7 +59,7 @@ class CountryTest extends HolodeckTestCase {
$actual = $this->twilio->pricing->v1->phoneNumbers
->countries->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -96,10 +96,10 @@ class CountryTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://pricing.twilio.com/v1/PhoneNumbers/Countries/US'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Pricing/V1/Voice/CountryTest.php b/Twilio/Tests/Integration/Pricing/V1/Voice/CountryTest.php
index 20b16f8..769b8b1 100644
--- a/Twilio/Tests/Integration/Pricing/V1/Voice/CountryTest.php
+++ b/Twilio/Tests/Integration/Pricing/V1/Voice/CountryTest.php
@@ -25,10 +25,10 @@ class CountryTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://pricing.twilio.com/v1/Voice/Countries'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -59,7 +59,7 @@ class CountryTest extends HolodeckTestCase {
$actual = $this->twilio->pricing->v1->voice
->countries->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -96,10 +96,10 @@ class CountryTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://pricing.twilio.com/v1/Voice/Countries/US'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Pricing/V1/Voice/NumberTest.php b/Twilio/Tests/Integration/Pricing/V1/Voice/NumberTest.php
index abef324..a6b4419 100644
--- a/Twilio/Tests/Integration/Pricing/V1/Voice/NumberTest.php
+++ b/Twilio/Tests/Integration/Pricing/V1/Voice/NumberTest.php
@@ -25,10 +25,10 @@ class NumberTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
- 'https://pricing.twilio.com/v1/Voice/Numbers/+987654321'
- )));
+ 'https://pricing.twilio.com/v1/Voice/Numbers/%2B987654321'
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/ActivityTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/ActivityTest.php
index aaa3ea6..10442aa 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/ActivityTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/ActivityTest.php
@@ -25,10 +25,10 @@ class ActivityTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities/WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -67,12 +67,12 @@ class ActivityTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities/WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
null,
$values
- )));
+ ));
}
public function testUpdateResponse() {
@@ -107,10 +107,10 @@ class ActivityTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities/WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -134,10 +134,10 @@ class ActivityTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -174,7 +174,7 @@ class ActivityTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->activities->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -217,12 +217,12 @@ class ActivityTest extends HolodeckTestCase {
'Available' => True,
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Activities',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/EventTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/EventTest.php
index deb0eb5..88638d7 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/EventTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/EventTest.php
@@ -25,10 +25,10 @@ class EventTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events/EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -79,10 +79,10 @@ class EventTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -134,7 +134,7 @@ class EventTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->events->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Task/ReservationTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Task/ReservationTest.php
index 9a7baef..9280ae1 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Task/ReservationTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Task/ReservationTest.php
@@ -26,10 +26,10 @@ class ReservationTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -73,7 +73,7 @@ class ReservationTest extends HolodeckTestCase {
->tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->reservations->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -112,10 +112,10 @@ class ReservationTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -159,10 +159,10 @@ class ReservationTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskChannelTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskChannelTest.php
index a595ec6..288e3c8 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskChannelTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskChannelTest.php
@@ -25,10 +25,10 @@ class TaskChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskChannels/TCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -63,10 +63,10 @@ class TaskChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskChannels'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -103,7 +103,7 @@ class TaskChannelTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->taskChannels->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsTest.php
index 672db87..3c8a069 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsTest.php
@@ -26,10 +26,10 @@ class TaskQueueStatisticsTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsTest.php
index 85e03d8..4b51dd8 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsTest.php
@@ -26,10 +26,10 @@ class TaskQueuesStatisticsTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/Statistics'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -120,7 +120,7 @@ class TaskQueuesStatisticsTest extends HolodeckTestCase {
->taskQueues
->statistics->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueueTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueueTest.php
index cda4703..256ebc0 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueueTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskQueueTest.php
@@ -25,10 +25,10 @@ class TaskQueueTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -73,10 +73,10 @@ class TaskQueueTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -121,10 +121,10 @@ class TaskQueueTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -170,7 +170,7 @@ class TaskQueueTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->taskQueues->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -213,12 +213,12 @@ class TaskQueueTest extends HolodeckTestCase {
'AssignmentActivitySid' => "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -263,10 +263,10 @@ class TaskQueueTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskTest.php
index e77d748..f74f49c 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/TaskTest.php
@@ -25,10 +25,10 @@ class TaskTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -71,10 +71,10 @@ class TaskTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -117,10 +117,10 @@ class TaskTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -144,10 +144,10 @@ class TaskTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -192,7 +192,7 @@ class TaskTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->tasks->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -235,12 +235,12 @@ class TaskTest extends HolodeckTestCase {
'WorkflowSid' => "WFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/ReservationTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/ReservationTest.php
index 442482d..ee4e2eb 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/ReservationTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/ReservationTest.php
@@ -26,10 +26,10 @@ class ReservationTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -73,7 +73,7 @@ class ReservationTest extends HolodeckTestCase {
->workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->reservations->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -112,10 +112,10 @@ class ReservationTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -159,10 +159,10 @@ class ReservationTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerChannelTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerChannelTest.php
index 67c97a3..75e9c0d 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerChannelTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerChannelTest.php
@@ -26,10 +26,10 @@ class WorkerChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -76,7 +76,7 @@ class WorkerChannelTest extends HolodeckTestCase {
->workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->workerChannels->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -115,10 +115,10 @@ class WorkerChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -165,10 +165,10 @@ class WorkerChannelTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerStatisticsTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerStatisticsTest.php
index 8e85d32..b90d012 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerStatisticsTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkerStatisticsTest.php
@@ -26,10 +26,10 @@ class WorkerStatisticsTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkersStatisticsTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkersStatisticsTest.php
index c194e5c..cf45cc2 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkersStatisticsTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Worker/WorkersStatisticsTest.php
@@ -26,10 +26,10 @@ class WorkersStatisticsTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/Statistics'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkerTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkerTest.php
index bd1b037..d74f8fc 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkerTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkerTest.php
@@ -25,10 +25,10 @@ class WorkerTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -72,7 +72,7 @@ class WorkerTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->workers->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -113,12 +113,12 @@ class WorkerTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -157,10 +157,10 @@ class WorkerTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -199,10 +199,10 @@ class WorkerTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -241,10 +241,10 @@ class WorkerTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsTest.php
index 2e9927b..2792113 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsTest.php
@@ -26,10 +26,10 @@ class WorkflowStatisticsTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkflowTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkflowTest.php
index d99af2a..16a35a0 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkflowTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkflowTest.php
@@ -25,10 +25,10 @@ class WorkflowTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -67,10 +67,10 @@ class WorkflowTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -109,10 +109,10 @@ class WorkflowTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -136,10 +136,10 @@ class WorkflowTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -180,7 +180,7 @@ class WorkflowTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->workflows->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -224,12 +224,12 @@ class WorkflowTest extends HolodeckTestCase {
'AssignmentCallbackUrl' => "https://example.com",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkspaceStatisticsTest.php b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkspaceStatisticsTest.php
index 92dddb4..6409306 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkspaceStatisticsTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/Workspace/WorkspaceStatisticsTest.php
@@ -25,10 +25,10 @@ class WorkspaceStatisticsTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics'
- )));
+ ));
}
public function testFetchResponse() {
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php b/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php
index 049314e..27079e6 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php
@@ -24,10 +24,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -71,10 +71,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -118,10 +118,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -167,7 +167,7 @@ class WorkspaceTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -206,12 +206,12 @@ class WorkspaceTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -255,10 +255,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php
index 925c844..67e4eac 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php
@@ -25,10 +25,10 @@ class CredentialListTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -62,10 +62,10 @@ class CredentialListTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -93,12 +93,12 @@ class CredentialListTest extends HolodeckTestCase {
'CredentialListSid' => "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -132,10 +132,10 @@ class CredentialListTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -170,7 +170,7 @@ class CredentialListTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->credentialsLists->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php
index 8fb62ef..c053790 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php
@@ -25,10 +25,10 @@ class IpAccessControlListTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -62,10 +62,10 @@ class IpAccessControlListTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -93,12 +93,12 @@ class IpAccessControlListTest extends HolodeckTestCase {
'IpAccessControlListSid' => "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -132,10 +132,10 @@ class IpAccessControlListTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -171,7 +171,7 @@ class IpAccessControlListTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->ipAccessControlLists->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php
index c308ad2..881b11c 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php
@@ -25,10 +25,10 @@ class OriginationUrlTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -66,10 +66,10 @@ class OriginationUrlTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -101,12 +101,12 @@ class OriginationUrlTest extends HolodeckTestCase {
'SipUrl' => "https://example.com",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -144,10 +144,10 @@ class OriginationUrlTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -186,7 +186,7 @@ class OriginationUrlTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->originationUrls->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -223,10 +223,10 @@ class OriginationUrlTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php
index 12a3383..de931b0 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php
@@ -25,10 +25,10 @@ class PhoneNumberTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -87,10 +87,10 @@ class PhoneNumberTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -118,12 +118,12 @@ class PhoneNumberTest extends HolodeckTestCase {
'PhoneNumberSid' => "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -182,10 +182,10 @@ class PhoneNumberTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -245,7 +245,7 @@ class PhoneNumberTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->phoneNumbers->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php b/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php
index 6b622fd..65e109c 100644
--- a/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php
@@ -24,10 +24,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -74,10 +74,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -99,10 +99,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks'
- )));
+ ));
}
public function testCreateResponse() {
@@ -149,10 +149,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -201,7 +201,7 @@ class TrunkTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -236,10 +236,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {