diff options
Diffstat (limited to 'Twilio/Tests/Integration/Preview')
4 files changed, 0 insertions, 226 deletions
diff --git a/Twilio/Tests/Integration/Preview/Wireless/CommandTest.php b/Twilio/Tests/Integration/Preview/Wireless/CommandTest.php deleted file mode 100644 index 260c95d..0000000 --- a/Twilio/Tests/Integration/Preview/Wireless/CommandTest.php +++ /dev/null @@ -1,67 +0,0 @@ -<?php - -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -namespace Twilio\Tests\Integration\Preview\Wireless; - -use Twilio\Exceptions\DeserializeException; -use Twilio\Exceptions\TwilioException; -use Twilio\Http\Response; -use Twilio\Tests\HolodeckTestCase; -use Twilio\Tests\Request; - -class CommandTest extends HolodeckTestCase { - public function testFetchRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->commands("DCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'get', - 'https://preview.twilio.com/wireless/Commands/DCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); - } - - public function testReadRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->commands->read(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'get', - 'https://preview.twilio.com/wireless/Commands' - ))); - } - - public function testCreateRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->commands->create("device", "command"); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $values = array( - 'Device' => "device", - 'Command' => "command", - ); - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'post', - 'https://preview.twilio.com/wireless/Commands', - null, - $values - ))); - } -}
\ No newline at end of file diff --git a/Twilio/Tests/Integration/Preview/Wireless/Device/UsageTest.php b/Twilio/Tests/Integration/Preview/Wireless/Device/UsageTest.php deleted file mode 100644 index 60975ca..0000000 --- a/Twilio/Tests/Integration/Preview/Wireless/Device/UsageTest.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -namespace Twilio\Tests\Integration\Preview\Wireless\Device; - -use Twilio\Exceptions\DeserializeException; -use Twilio\Exceptions\TwilioException; -use Twilio\Http\Response; -use Twilio\Tests\HolodeckTestCase; -use Twilio\Tests\Request; - -class UsageTest extends HolodeckTestCase { - public function testFetchRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->devices("DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") - ->usage()->fetch(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'get', - 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage' - ))); - } -}
\ No newline at end of file diff --git a/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php b/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php deleted file mode 100644 index 2be4508..0000000 --- a/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php +++ /dev/null @@ -1,80 +0,0 @@ -<?php - -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -namespace Twilio\Tests\Integration\Preview\Wireless; - -use Twilio\Exceptions\DeserializeException; -use Twilio\Exceptions\TwilioException; -use Twilio\Http\Response; -use Twilio\Tests\HolodeckTestCase; -use Twilio\Tests\Request; - -class DeviceTest extends HolodeckTestCase { - public function testFetchRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->devices("DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'get', - 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); - } - - public function testReadRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->devices->read(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'get', - 'https://preview.twilio.com/wireless/Devices' - ))); - } - - public function testCreateRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->devices->create("ratePlan"); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $values = array( - 'RatePlan' => "ratePlan", - ); - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'post', - 'https://preview.twilio.com/wireless/Devices', - null, - $values - ))); - } - - public function testUpdateRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->devices("DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->update(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'post', - 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); - } -}
\ No newline at end of file diff --git a/Twilio/Tests/Integration/Preview/Wireless/RatePlanTest.php b/Twilio/Tests/Integration/Preview/Wireless/RatePlanTest.php deleted file mode 100644 index 4d9fc5d..0000000 --- a/Twilio/Tests/Integration/Preview/Wireless/RatePlanTest.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -namespace Twilio\Tests\Integration\Preview\Wireless; - -use Twilio\Exceptions\DeserializeException; -use Twilio\Exceptions\TwilioException; -use Twilio\Http\Response; -use Twilio\Tests\HolodeckTestCase; -use Twilio\Tests\Request; - -class RatePlanTest extends HolodeckTestCase { - public function testReadRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->ratePlans->read(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'get', - 'https://preview.twilio.com/wireless/RatePlans' - ))); - } - - public function testFetchRequest() { - $this->holodeck->mock(new Response(500, '')); - - try { - $this->twilio->preview->wireless->ratePlans("sid")->fetch(); - } catch (DeserializeException $e) {} - catch (TwilioException $e) {} - - $this->assertTrue($this->holodeck->hasRequest(new Request( - 'get', - 'https://preview.twilio.com/wireless/RatePlans/sid' - ))); - } -}
\ No newline at end of file |