Browse code

added appinfo/info.xml appinfo/signature.json CHANGELOG.txt lib/AppInfo/Application.php css/style.css providers/Plivo

DoubleBastionAdmin authored on 05/11/2025 13:35:09
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,255 @@
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 ConferenceTest
12
+ * @package Resources
13
+ */
14
+class ConferenceTest extends BaseTestCase
15
+{
16
+    function testConferenceDetails()
17
+    {
18
+        $request = new PlivoRequest(
19
+            'GET',
20
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/dfshjkasfhjkasfhjkashf/',
21
+            []);
22
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceGetResponse.json');
23
+
24
+        $this->mock(new PlivoResponse($request,200, $body));
25
+
26
+        $actual = $this->client->conferences->get("dfshjkasfhjkasfhjkashf");
27
+
28
+        $this->assertRequest($request);
29
+
30
+        self::assertNotNull($actual);
31
+
32
+        self::assertEquals($actual->getId(), "dfshjkasfhjkasfhjkashf");
33
+    }
34
+
35
+    function testConferenceList()
36
+    {
37
+        $request = new PlivoRequest(
38
+            'GET',
39
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/',
40
+            []);
41
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceListResponse.json');
42
+
43
+        $this->mock(new PlivoResponse($request,200, $body));
44
+
45
+        $actual = $this->client->conferences->list;
46
+
47
+        $this->assertRequest($request);
48
+
49
+        self::assertNotNull($actual);
50
+
51
+        self::assertGreaterThan(0, count($actual));
52
+    }
53
+
54
+    function testConferenceDeleteAll()
55
+    {
56
+        $request = new PlivoRequest(
57
+            'DELETE',
58
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/',
59
+            []);
60
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceDeleteAllResponse.json');
61
+
62
+        $this->mock(new PlivoResponse($request,204, $body));
63
+
64
+        $actual = $this->client->conferences->deleteAll();
65
+
66
+        $this->assertRequest($request);
67
+
68
+        self::assertNotNull($actual);
69
+    }
70
+
71
+    function testConferenceDelete()
72
+    {
73
+        $request = new PlivoRequest(
74
+            'DELETE',
75
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/',
76
+            []);
77
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceDeleteAllResponse.json');
78
+
79
+        $this->mock(new PlivoResponse($request,204, $body));
80
+
81
+        $actual = $this->client->conferences->delete("asdasdasdasd");
82
+
83
+        $this->assertRequest($request);
84
+
85
+        self::assertNotNull($actual);
86
+    }
87
+
88
+    function testConferenceMemberMute()
89
+    {
90
+        $request = new PlivoRequest(
91
+            'POST',
92
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Mute/',
93
+            []);
94
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
95
+
96
+        $this->mock(new PlivoResponse($request,201, $body));
97
+
98
+        $actual = $this->client->conferences->muteMember("asdasdasdasd", ['123']);
99
+
100
+        $this->assertRequest($request);
101
+
102
+        self::assertNotNull($actual);
103
+    }
104
+
105
+    function testConferenceMemberUnMute()
106
+    {
107
+        $request = new PlivoRequest(
108
+            'Delete',
109
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Mute/',
110
+            []);
111
+
112
+        $this->mock(new PlivoResponse($request,201, ""));
113
+
114
+        $actual = $this->client->conferences->unMuteMember("asdasdasdasd", ['123']);
115
+
116
+        $this->assertRequest($request);
117
+
118
+        self::assertNotNull($actual);
119
+    }
120
+
121
+    function testConferenceMemberDeaf()
122
+    {
123
+        $request = new PlivoRequest(
124
+            'POST',
125
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Deaf/',
126
+            []);
127
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
128
+
129
+        $this->mock(new PlivoResponse($request,201, $body));
130
+
131
+        $actual = $this->client->conferences->makeDeaf("asdasdasdasd", ['123']);
132
+
133
+        $this->assertRequest($request);
134
+
135
+        self::assertNotNull($actual);
136
+    }
137
+
138
+    function testConferenceMemberHear()
139
+    {
140
+        $request = new PlivoRequest(
141
+            'Delete',
142
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111/Deaf/',
143
+            []);
144
+
145
+        $this->mock(new PlivoResponse($request,201, ""));
146
+
147
+        $actual = $this->client->conferences->enableHearing("asdasdasdasd", ['123','111']);
148
+
149
+        $this->assertRequest($request);
150
+
151
+        self::assertNotNull($actual);
152
+    }
153
+
154
+    function testConferenceMemberKick()
155
+    {
156
+        $request = new PlivoRequest(
157
+            'POST',
158
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Kick/',
159
+            []);
160
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
161
+
162
+        $this->mock(new PlivoResponse($request,201, $body));
163
+
164
+        $actual = $this->client->conferences->kickMember("asdasdasdasd", '123');
165
+
166
+        $this->assertRequest($request);
167
+
168
+        self::assertNotNull($actual);
169
+    }
170
+
171
+    function testConferenceMemberPlay()
172
+    {
173
+        $request = new PlivoRequest(
174
+            'POST',
175
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111,1/Play/',
176
+            ['url'=>""]);
177
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
178
+
179
+        $this->mock(new PlivoResponse($request,201, $body));
180
+
181
+        $actual = $this->client->conferences->startPlaying("asdasdasdasd", ['123','111','1'], "");
182
+
183
+        $this->assertRequest($request);
184
+
185
+        self::assertNotNull($actual);
186
+    }
187
+
188
+    function testConferenceMemberSpeak()
189
+    {
190
+        $request = new PlivoRequest(
191
+            'POST',
192
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Speak/',
193
+            ["text"=>"this is the text"]);
194
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
195
+
196
+        $this->mock(new PlivoResponse($request,201, $body));
197
+
198
+        $actual = $this->client->conferences->startSpeaking("asdasdasdasd", ['123'], "this is the text");
199
+
200
+        $this->assertRequest($request);
201
+
202
+        self::assertNotNull($actual);
203
+    }
204
+
205
+    function testConferenceMemberPlayDelete()
206
+    {
207
+        $request = new PlivoRequest(
208
+            'DELETE',
209
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111,1/Play/',
210
+            []);
211
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
212
+
213
+        $this->mock(new PlivoResponse($request,204, $body));
214
+
215
+        $actual = $this->client->conferences->stopPlaying("asdasdasdasd", ['123','111','1']);
216
+
217
+        $this->assertRequest($request);
218
+
219
+        self::assertNotNull($actual);
220
+    }
221
+
222
+    function testConferenceMemberSpeakDelete()
223
+    {
224
+        $request = new PlivoRequest(
225
+            'DELETE',
226
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Speak/',
227
+            []);
228
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
229
+
230
+        $this->mock(new PlivoResponse($request,204, $body));
231
+
232
+        $actual = $this->client->conferences->stopSpeaking("asdasdasdasd", ['123']);
233
+
234
+        $this->assertRequest($request);
235
+
236
+        self::assertNotNull($actual);
237
+    }
238
+
239
+    function testConferenceRecord()
240
+    {
241
+        $request = new PlivoRequest(
242
+            'POST',
243
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Record/',
244
+            []);
245
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceRecordCreateResponse.json');
246
+
247
+        $this->mock(new PlivoResponse($request,201, $body));
248
+
249
+        $actual = $this->client->conferences->startRecording("asdasdasdasd");
250
+
251
+        $this->assertRequest($request);
252
+
253
+        self::assertNotNull($actual);
254
+    }
255
+}
Browse code

removed appinfo/info.xml appinfo/signature.json CHANGELOG.txt lib/AppInfo/Application.php css/style.css providers/Plivo

DoubleBastionAdmin authored on 05/11/2025 13:12:22
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,255 +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 ConferenceTest
12
- * @package Resources
13
- */
14
-class ConferenceTest extends BaseTestCase
15
-{
16
-    function testConferenceDetails()
17
-    {
18
-        $request = new PlivoRequest(
19
-            'GET',
20
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/dfshjkasfhjkasfhjkashf/',
21
-            []);
22
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceGetResponse.json');
23
-
24
-        $this->mock(new PlivoResponse($request,200, $body));
25
-
26
-        $actual = $this->client->conferences->get("dfshjkasfhjkasfhjkashf");
27
-
28
-        $this->assertRequest($request);
29
-
30
-        self::assertNotNull($actual);
31
-
32
-        self::assertEquals($actual->getId(), "dfshjkasfhjkasfhjkashf");
33
-    }
34
-
35
-    function testConferenceList()
36
-    {
37
-        $request = new PlivoRequest(
38
-            'GET',
39
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/',
40
-            []);
41
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceListResponse.json');
42
-
43
-        $this->mock(new PlivoResponse($request,200, $body));
44
-
45
-        $actual = $this->client->conferences->list;
46
-
47
-        $this->assertRequest($request);
48
-
49
-        self::assertNotNull($actual);
50
-
51
-        self::assertGreaterThan(0, count($actual));
52
-    }
53
-
54
-    function testConferenceDeleteAll()
55
-    {
56
-        $request = new PlivoRequest(
57
-            'DELETE',
58
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/',
59
-            []);
60
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceDeleteAllResponse.json');
61
-
62
-        $this->mock(new PlivoResponse($request,204, $body));
63
-
64
-        $actual = $this->client->conferences->deleteAll();
65
-
66
-        $this->assertRequest($request);
67
-
68
-        self::assertNotNull($actual);
69
-    }
70
-
71
-    function testConferenceDelete()
72
-    {
73
-        $request = new PlivoRequest(
74
-            'DELETE',
75
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/',
76
-            []);
77
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceDeleteAllResponse.json');
78
-
79
-        $this->mock(new PlivoResponse($request,204, $body));
80
-
81
-        $actual = $this->client->conferences->delete("asdasdasdasd");
82
-
83
-        $this->assertRequest($request);
84
-
85
-        self::assertNotNull($actual);
86
-    }
87
-
88
-    function testConferenceMemberMute()
89
-    {
90
-        $request = new PlivoRequest(
91
-            'POST',
92
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Mute/',
93
-            []);
94
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
95
-
96
-        $this->mock(new PlivoResponse($request,201, $body));
97
-
98
-        $actual = $this->client->conferences->muteMember("asdasdasdasd", ['123']);
99
-
100
-        $this->assertRequest($request);
101
-
102
-        self::assertNotNull($actual);
103
-    }
104
-
105
-    function testConferenceMemberUnMute()
106
-    {
107
-        $request = new PlivoRequest(
108
-            'Delete',
109
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Mute/',
110
-            []);
111
-
112
-        $this->mock(new PlivoResponse($request,201, ""));
113
-
114
-        $actual = $this->client->conferences->unMuteMember("asdasdasdasd", ['123']);
115
-
116
-        $this->assertRequest($request);
117
-
118
-        self::assertNotNull($actual);
119
-    }
120
-
121
-    function testConferenceMemberDeaf()
122
-    {
123
-        $request = new PlivoRequest(
124
-            'POST',
125
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Deaf/',
126
-            []);
127
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
128
-
129
-        $this->mock(new PlivoResponse($request,201, $body));
130
-
131
-        $actual = $this->client->conferences->makeDeaf("asdasdasdasd", ['123']);
132
-
133
-        $this->assertRequest($request);
134
-
135
-        self::assertNotNull($actual);
136
-    }
137
-
138
-    function testConferenceMemberHear()
139
-    {
140
-        $request = new PlivoRequest(
141
-            'Delete',
142
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111/Deaf/',
143
-            []);
144
-
145
-        $this->mock(new PlivoResponse($request,201, ""));
146
-
147
-        $actual = $this->client->conferences->enableHearing("asdasdasdasd", ['123','111']);
148
-
149
-        $this->assertRequest($request);
150
-
151
-        self::assertNotNull($actual);
152
-    }
153
-
154
-    function testConferenceMemberKick()
155
-    {
156
-        $request = new PlivoRequest(
157
-            'POST',
158
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Kick/',
159
-            []);
160
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
161
-
162
-        $this->mock(new PlivoResponse($request,201, $body));
163
-
164
-        $actual = $this->client->conferences->kickMember("asdasdasdasd", '123');
165
-
166
-        $this->assertRequest($request);
167
-
168
-        self::assertNotNull($actual);
169
-    }
170
-
171
-    function testConferenceMemberPlay()
172
-    {
173
-        $request = new PlivoRequest(
174
-            'POST',
175
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111,1/Play/',
176
-            ['url'=>""]);
177
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
178
-
179
-        $this->mock(new PlivoResponse($request,201, $body));
180
-
181
-        $actual = $this->client->conferences->startPlaying("asdasdasdasd", ['123','111','1'], "");
182
-
183
-        $this->assertRequest($request);
184
-
185
-        self::assertNotNull($actual);
186
-    }
187
-
188
-    function testConferenceMemberSpeak()
189
-    {
190
-        $request = new PlivoRequest(
191
-            'POST',
192
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Speak/',
193
-            ["text"=>"this is the text"]);
194
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
195
-
196
-        $this->mock(new PlivoResponse($request,201, $body));
197
-
198
-        $actual = $this->client->conferences->startSpeaking("asdasdasdasd", ['123'], "this is the text");
199
-
200
-        $this->assertRequest($request);
201
-
202
-        self::assertNotNull($actual);
203
-    }
204
-
205
-    function testConferenceMemberPlayDelete()
206
-    {
207
-        $request = new PlivoRequest(
208
-            'DELETE',
209
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111,1/Play/',
210
-            []);
211
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
212
-
213
-        $this->mock(new PlivoResponse($request,204, $body));
214
-
215
-        $actual = $this->client->conferences->stopPlaying("asdasdasdasd", ['123','111','1']);
216
-
217
-        $this->assertRequest($request);
218
-
219
-        self::assertNotNull($actual);
220
-    }
221
-
222
-    function testConferenceMemberSpeakDelete()
223
-    {
224
-        $request = new PlivoRequest(
225
-            'DELETE',
226
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Speak/',
227
-            []);
228
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
229
-
230
-        $this->mock(new PlivoResponse($request,204, $body));
231
-
232
-        $actual = $this->client->conferences->stopSpeaking("asdasdasdasd", ['123']);
233
-
234
-        $this->assertRequest($request);
235
-
236
-        self::assertNotNull($actual);
237
-    }
238
-
239
-    function testConferenceRecord()
240
-    {
241
-        $request = new PlivoRequest(
242
-            'POST',
243
-            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Record/',
244
-            []);
245
-        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceRecordCreateResponse.json');
246
-
247
-        $this->mock(new PlivoResponse($request,201, $body));
248
-
249
-        $actual = $this->client->conferences->startRecording("asdasdasdasd");
250
-
251
-        $this->assertRequest($request);
252
-
253
-        self::assertNotNull($actual);
254
-    }
255
-}
Browse code

Added README.md appinfo/info.xml appinfo/signature.json lib/Controller/AuthorApiController.php and the providers directory

DoubleBastionAdmin authored on 20/08/2022 16:33:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,255 @@
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 ConferenceTest
12
+ * @package Resources
13
+ */
14
+class ConferenceTest extends BaseTestCase
15
+{
16
+    function testConferenceDetails()
17
+    {
18
+        $request = new PlivoRequest(
19
+            'GET',
20
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/dfshjkasfhjkasfhjkashf/',
21
+            []);
22
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceGetResponse.json');
23
+
24
+        $this->mock(new PlivoResponse($request,200, $body));
25
+
26
+        $actual = $this->client->conferences->get("dfshjkasfhjkasfhjkashf");
27
+
28
+        $this->assertRequest($request);
29
+
30
+        self::assertNotNull($actual);
31
+
32
+        self::assertEquals($actual->getId(), "dfshjkasfhjkasfhjkashf");
33
+    }
34
+
35
+    function testConferenceList()
36
+    {
37
+        $request = new PlivoRequest(
38
+            'GET',
39
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/',
40
+            []);
41
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceListResponse.json');
42
+
43
+        $this->mock(new PlivoResponse($request,200, $body));
44
+
45
+        $actual = $this->client->conferences->list;
46
+
47
+        $this->assertRequest($request);
48
+
49
+        self::assertNotNull($actual);
50
+
51
+        self::assertGreaterThan(0, count($actual));
52
+    }
53
+
54
+    function testConferenceDeleteAll()
55
+    {
56
+        $request = new PlivoRequest(
57
+            'DELETE',
58
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/',
59
+            []);
60
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceDeleteAllResponse.json');
61
+
62
+        $this->mock(new PlivoResponse($request,204, $body));
63
+
64
+        $actual = $this->client->conferences->deleteAll();
65
+
66
+        $this->assertRequest($request);
67
+
68
+        self::assertNotNull($actual);
69
+    }
70
+
71
+    function testConferenceDelete()
72
+    {
73
+        $request = new PlivoRequest(
74
+            'DELETE',
75
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/',
76
+            []);
77
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceDeleteAllResponse.json');
78
+
79
+        $this->mock(new PlivoResponse($request,204, $body));
80
+
81
+        $actual = $this->client->conferences->delete("asdasdasdasd");
82
+
83
+        $this->assertRequest($request);
84
+
85
+        self::assertNotNull($actual);
86
+    }
87
+
88
+    function testConferenceMemberMute()
89
+    {
90
+        $request = new PlivoRequest(
91
+            'POST',
92
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Mute/',
93
+            []);
94
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
95
+
96
+        $this->mock(new PlivoResponse($request,201, $body));
97
+
98
+        $actual = $this->client->conferences->muteMember("asdasdasdasd", ['123']);
99
+
100
+        $this->assertRequest($request);
101
+
102
+        self::assertNotNull($actual);
103
+    }
104
+
105
+    function testConferenceMemberUnMute()
106
+    {
107
+        $request = new PlivoRequest(
108
+            'Delete',
109
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Mute/',
110
+            []);
111
+
112
+        $this->mock(new PlivoResponse($request,201, ""));
113
+
114
+        $actual = $this->client->conferences->unMuteMember("asdasdasdasd", ['123']);
115
+
116
+        $this->assertRequest($request);
117
+
118
+        self::assertNotNull($actual);
119
+    }
120
+
121
+    function testConferenceMemberDeaf()
122
+    {
123
+        $request = new PlivoRequest(
124
+            'POST',
125
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Deaf/',
126
+            []);
127
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
128
+
129
+        $this->mock(new PlivoResponse($request,201, $body));
130
+
131
+        $actual = $this->client->conferences->makeDeaf("asdasdasdasd", ['123']);
132
+
133
+        $this->assertRequest($request);
134
+
135
+        self::assertNotNull($actual);
136
+    }
137
+
138
+    function testConferenceMemberHear()
139
+    {
140
+        $request = new PlivoRequest(
141
+            'Delete',
142
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111/Deaf/',
143
+            []);
144
+
145
+        $this->mock(new PlivoResponse($request,201, ""));
146
+
147
+        $actual = $this->client->conferences->enableHearing("asdasdasdasd", ['123','111']);
148
+
149
+        $this->assertRequest($request);
150
+
151
+        self::assertNotNull($actual);
152
+    }
153
+
154
+    function testConferenceMemberKick()
155
+    {
156
+        $request = new PlivoRequest(
157
+            'POST',
158
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Kick/',
159
+            []);
160
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
161
+
162
+        $this->mock(new PlivoResponse($request,201, $body));
163
+
164
+        $actual = $this->client->conferences->kickMember("asdasdasdasd", '123');
165
+
166
+        $this->assertRequest($request);
167
+
168
+        self::assertNotNull($actual);
169
+    }
170
+
171
+    function testConferenceMemberPlay()
172
+    {
173
+        $request = new PlivoRequest(
174
+            'POST',
175
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111,1/Play/',
176
+            ['url'=>""]);
177
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
178
+
179
+        $this->mock(new PlivoResponse($request,201, $body));
180
+
181
+        $actual = $this->client->conferences->startPlaying("asdasdasdasd", ['123','111','1'], "");
182
+
183
+        $this->assertRequest($request);
184
+
185
+        self::assertNotNull($actual);
186
+    }
187
+
188
+    function testConferenceMemberSpeak()
189
+    {
190
+        $request = new PlivoRequest(
191
+            'POST',
192
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Speak/',
193
+            ["text"=>"this is the text"]);
194
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
195
+
196
+        $this->mock(new PlivoResponse($request,201, $body));
197
+
198
+        $actual = $this->client->conferences->startSpeaking("asdasdasdasd", ['123'], "this is the text");
199
+
200
+        $this->assertRequest($request);
201
+
202
+        self::assertNotNull($actual);
203
+    }
204
+
205
+    function testConferenceMemberPlayDelete()
206
+    {
207
+        $request = new PlivoRequest(
208
+            'DELETE',
209
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123,111,1/Play/',
210
+            []);
211
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
212
+
213
+        $this->mock(new PlivoResponse($request,204, $body));
214
+
215
+        $actual = $this->client->conferences->stopPlaying("asdasdasdasd", ['123','111','1']);
216
+
217
+        $this->assertRequest($request);
218
+
219
+        self::assertNotNull($actual);
220
+    }
221
+
222
+    function testConferenceMemberSpeakDelete()
223
+    {
224
+        $request = new PlivoRequest(
225
+            'DELETE',
226
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Member/123/Speak/',
227
+            []);
228
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceMemberMuteCreateResponse.json');
229
+
230
+        $this->mock(new PlivoResponse($request,204, $body));
231
+
232
+        $actual = $this->client->conferences->stopSpeaking("asdasdasdasd", ['123']);
233
+
234
+        $this->assertRequest($request);
235
+
236
+        self::assertNotNull($actual);
237
+    }
238
+
239
+    function testConferenceRecord()
240
+    {
241
+        $request = new PlivoRequest(
242
+            'POST',
243
+            'Account/MAXXXXXXXXXXXXXXXXXX/Conference/asdasdasdasd/Record/',
244
+            []);
245
+        $body = file_get_contents(__DIR__ . '/../Mocks/conferenceRecordCreateResponse.json');
246
+
247
+        $this->mock(new PlivoResponse($request,201, $body));
248
+
249
+        $actual = $this->client->conferences->startRecording("asdasdasdasd");
250
+
251
+        $this->assertRequest($request);
252
+
253
+        self::assertNotNull($actual);
254
+    }
255
+}