Browse code

removed Telnyx Plivo Twilio Flowroute appinfo/info.xml appinfo/signature.json README.md lib/Controller/AuthorApiController.php

DoubleBastionAdmin authored on 20/08/2022 16:26:33
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,37 +0,0 @@
1
-<?php
2
-
3
-namespace Resources;
4
-
5
-
6
-use Plivo\Http\PlivoRequest;
7
-use Plivo\Http\PlivoResponse;
8
-use Plivo\Tests\BaseTestCase;
9
-
10
-/**
11
- * Class PricingTest
12
- * @package Resources
13
- */
14
-class PricingTest extends BaseTestCase
15
-{
16
-    function testPricingGet()
17
-    {
18
-        $request = new PlivoRequest(
19
-            'GET',
20
-            'Account/MAXXXXXXXXXXXXXXXXXX/Pricing/',
21
-            ['country_iso' => 'US']);
22
-        $body = file_get_contents(__DIR__ . '/../Mocks/pricingGetResponse.json');
23
-
24
-        $this->mock(new PlivoResponse($request,200, $body));
25
-
26
-        $actual = $this->client->pricing->get('US');
27
-
28
-        $this->assertRequest($request);
29
-
30
-        self::assertNotNull($actual);
31
-
32
-        self::assertEquals("US", $actual->countryIso);
33
-        self::assertEquals("0.00650", $actual->message->outbound->rate);
34
-        self::assertEquals("0.00300", $actual->voice->outbound['ip']['rate']);
35
-        self::assertNotEquals("0.00650", $actual->phoneNumbers->local->rate);
36
-    }
37
-}
38 0
\ No newline at end of file
Browse code

Created repository.

DoubleBastionAdmin authored on 01/03/2022 23:47:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+<?php
2
+
3
+namespace Resources;
4
+
5
+
6
+use Plivo\Http\PlivoRequest;
7
+use Plivo\Http\PlivoResponse;
8
+use Plivo\Tests\BaseTestCase;
9
+
10
+/**
11
+ * Class PricingTest
12
+ * @package Resources
13
+ */
14
+class PricingTest extends BaseTestCase
15
+{
16
+    function testPricingGet()
17
+    {
18
+        $request = new PlivoRequest(
19
+            'GET',
20
+            'Account/MAXXXXXXXXXXXXXXXXXX/Pricing/',
21
+            ['country_iso' => 'US']);
22
+        $body = file_get_contents(__DIR__ . '/../Mocks/pricingGetResponse.json');
23
+
24
+        $this->mock(new PlivoResponse($request,200, $body));
25
+
26
+        $actual = $this->client->pricing->get('US');
27
+
28
+        $this->assertRequest($request);
29
+
30
+        self::assertNotNull($actual);
31
+
32
+        self::assertEquals("US", $actual->countryIso);
33
+        self::assertEquals("0.00650", $actual->message->outbound->rate);
34
+        self::assertEquals("0.00300", $actual->voice->outbound['ip']['rate']);
35
+        self::assertNotEquals("0.00650", $actual->phoneNumbers->local->rate);
36
+    }
37
+}
0 38
\ No newline at end of file