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,54 @@
1
+<?php
2
+namespace XML;
3
+
4
+use Plivo\XML\Response;
5
+use Plivo\Tests\BaseTestCase;
6
+
7
+/**
8
+ * Class STest
9
+ * @package Plivo\Tests\XML
10
+ */
11
+class STest extends BaseTestCase 
12
+{
13
+    
14
+    function testAddS()
15
+    {
16
+        $response = new Response();
17
+        $params1 = array(
18
+            'language' => 'en-IN',
19
+            'voice' => 'Polly.Aditi'  
20
+        );
21
+
22
+        $response->addSpeak('Hello,',$params1)
23
+            ->addS('Welcome to Plivo');
24
+        $ssml = $response->toXML(true);
25
+        self::assertNotNull($ssml);
26
+
27
+        self::assertXmlStringEqualsXmlFile(__DIR__ . '/../Mocks/sSpeak.xml',$ssml);
28
+    }
29
+
30
+    function testExceptionAddS()
31
+    {
32
+        $this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
33
+        $response = new Response();
34
+        $params1 = array(
35
+            'language' => 'en-US' 
36
+        );
37
+
38
+        $response->addSpeak('Hello,',$params1)
39
+            ->addS('');
40
+    }
41
+
42
+    function testExceptionSSMLSupported()
43
+    {
44
+        $this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
45
+        $response = new Response();
46
+        $params1 = array(
47
+            'language' => 'en-US' 
48
+        );
49
+
50
+        $response->addSpeak('Hello,',$params1)
51
+            ->addS('Welcome to Plivo');
52
+    }
53
+
54
+}
0 55
\ No newline at end of file
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,54 +0,0 @@
1
-<?php
2
-namespace XML;
3
-
4
-use Plivo\XML\Response;
5
-use Plivo\Tests\BaseTestCase;
6
-
7
-/**
8
- * Class STest
9
- * @package Plivo\Tests\XML
10
- */
11
-class STest extends BaseTestCase 
12
-{
13
-    
14
-    function testAddS()
15
-    {
16
-        $response = new Response();
17
-        $params1 = array(
18
-            'language' => 'en-IN',
19
-            'voice' => 'Polly.Aditi'  
20
-        );
21
-
22
-        $response->addSpeak('Hello,',$params1)
23
-            ->addS('Welcome to Plivo');
24
-        $ssml = $response->toXML(true);
25
-        self::assertNotNull($ssml);
26
-
27
-        self::assertXmlStringEqualsXmlFile(__DIR__ . '/../Mocks/sSpeak.xml',$ssml);
28
-    }
29
-
30
-    function testExceptionAddS()
31
-    {
32
-        $this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
33
-        $response = new Response();
34
-        $params1 = array(
35
-            'language' => 'en-US' 
36
-        );
37
-
38
-        $response->addSpeak('Hello,',$params1)
39
-            ->addS('');
40
-    }
41
-
42
-    function testExceptionSSMLSupported()
43
-    {
44
-        $this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
45
-        $response = new Response();
46
-        $params1 = array(
47
-            'language' => 'en-US' 
48
-        );
49
-
50
-        $response->addSpeak('Hello,',$params1)
51
-            ->addS('Welcome to Plivo');
52
-    }
53
-
54
-}
55 0
\ No newline at end of file
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,54 @@
1
+<?php
2
+namespace XML;
3
+
4
+use Plivo\XML\Response;
5
+use Plivo\Tests\BaseTestCase;
6
+
7
+/**
8
+ * Class STest
9
+ * @package Plivo\Tests\XML
10
+ */
11
+class STest extends BaseTestCase 
12
+{
13
+    
14
+    function testAddS()
15
+    {
16
+        $response = new Response();
17
+        $params1 = array(
18
+            'language' => 'en-IN',
19
+            'voice' => 'Polly.Aditi'  
20
+        );
21
+
22
+        $response->addSpeak('Hello,',$params1)
23
+            ->addS('Welcome to Plivo');
24
+        $ssml = $response->toXML(true);
25
+        self::assertNotNull($ssml);
26
+
27
+        self::assertXmlStringEqualsXmlFile(__DIR__ . '/../Mocks/sSpeak.xml',$ssml);
28
+    }
29
+
30
+    function testExceptionAddS()
31
+    {
32
+        $this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
33
+        $response = new Response();
34
+        $params1 = array(
35
+            'language' => 'en-US' 
36
+        );
37
+
38
+        $response->addSpeak('Hello,',$params1)
39
+            ->addS('');
40
+    }
41
+
42
+    function testExceptionSSMLSupported()
43
+    {
44
+        $this->expectPlivoException('Plivo\Exceptions\PlivoXMLException');
45
+        $response = new Response();
46
+        $params1 = array(
47
+            'language' => 'en-US' 
48
+        );
49
+
50
+        $response->addSpeak('Hello,',$params1)
51
+            ->addS('Welcome to Plivo');
52
+    }
53
+
54
+}
0 55
\ No newline at end of file