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,68 +0,0 @@
1
-<?php
2
-
3
-namespace Plivo\Tests;
4
-
5
-
6
-
7
-use PHPUnit\Framework\TestCase;
8
-use PHPUnit\Runner\Version;
9
-use Plivo\Authentication\BasicAuth;
10
-use Plivo\RestClient;
11
-use Plivo\BaseClient;
12
-use Plivo\MessageClient;
13
-
14
-/**
15
- * Class BaseTestCase
16
- * @package Plivo\Tests
17
- */
18
-class BaseTestCase extends TestCase
19
-{
20
-    /**
21
-     * @var RestClient
22
-     */
23
-    protected $client;
24
-    /**
25
-     * @var TestClient
26
-     */
27
-    protected $testClient = null;
28
-
29
-    /**
30
-     *
31
-     */
32
-    protected function setUp(): void
33
-    {
34
-        $this->client = new RestClient("MAXXXXXXXXXXXXXXXXXX", "AbcdEfghIjklMnop1234");
35
-        $this->testClient = new TestClient(null,
36
-            new BasicAuth("MAXXXXXXXXXXXXXXXXXX", "AbcdEfghIjklMnop1234"));
37
-        $this->client->client->setHttpClientHandler($this->testClient);
38
-    }
39
-
40
-    /**
41
-     * @param $request
42
-     */
43
-    public function assertRequest($request) {
44
-        $this->testClient->assertRequest($request);
45
-        self::assertTrue(true);
46
-    }
47
-
48
-    /**
49
-     * @param $response
50
-     */
51
-    public function mock($response)
52
-    {
53
-        $this->testClient->mock($response);
54
-    }
55
-
56
-    /**
57
-     * @param $response
58
-     */
59
-    public function expectPlivoException($exception)
60
-    {
61
-        if (version_compare(Version::id(), '7.0.0', '<')) {
62
-            self::setExpectedException($exception);
63
-        } else {
64
-            self::expectException($exception);
65
-        }
66
-
67
-    }
68
-}
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,68 @@
1
+<?php
2
+
3
+namespace Plivo\Tests;
4
+
5
+
6
+
7
+use PHPUnit\Framework\TestCase;
8
+use PHPUnit\Runner\Version;
9
+use Plivo\Authentication\BasicAuth;
10
+use Plivo\RestClient;
11
+use Plivo\BaseClient;
12
+use Plivo\MessageClient;
13
+
14
+/**
15
+ * Class BaseTestCase
16
+ * @package Plivo\Tests
17
+ */
18
+class BaseTestCase extends TestCase
19
+{
20
+    /**
21
+     * @var RestClient
22
+     */
23
+    protected $client;
24
+    /**
25
+     * @var TestClient
26
+     */
27
+    protected $testClient = null;
28
+
29
+    /**
30
+     *
31
+     */
32
+    protected function setUp(): void
33
+    {
34
+        $this->client = new RestClient("MAXXXXXXXXXXXXXXXXXX", "AbcdEfghIjklMnop1234");
35
+        $this->testClient = new TestClient(null,
36
+            new BasicAuth("MAXXXXXXXXXXXXXXXXXX", "AbcdEfghIjklMnop1234"));
37
+        $this->client->client->setHttpClientHandler($this->testClient);
38
+    }
39
+
40
+    /**
41
+     * @param $request
42
+     */
43
+    public function assertRequest($request) {
44
+        $this->testClient->assertRequest($request);
45
+        self::assertTrue(true);
46
+    }
47
+
48
+    /**
49
+     * @param $response
50
+     */
51
+    public function mock($response)
52
+    {
53
+        $this->testClient->mock($response);
54
+    }
55
+
56
+    /**
57
+     * @param $response
58
+     */
59
+    public function expectPlivoException($exception)
60
+    {
61
+        if (version_compare(Version::id(), '7.0.0', '<')) {
62
+            self::setExpectedException($exception);
63
+        } else {
64
+            self::expectException($exception);
65
+        }
66
+
67
+    }
68
+}