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,24 @@
1
+<?php
2
+
3
+namespace Telnyx\Util;
4
+
5
+/**
6
+ * @internal
7
+ * @covers \Telnyx\Util\Set
8
+ */
9
+final class SetTest extends \Telnyx\TestCase
10
+{
11
+    public function testSet()
12
+    {
13
+        $data = ['a', 'b', 'c', 'd'];
14
+        $result = new \Telnyx\Util\Set($data);
15
+        static::assertSame(true, $result->includes('a'));
16
+        static::assertSame(true, $result->includes('b'));
17
+        static::assertSame(true, $result->includes('c'));
18
+        static::assertSame(true, $result->includes('d'));
19
+        static::assertSame(false, $result->includes('e'));
20
+
21
+        $iterator = $result->getIterator();
22
+        static::assertInstanceOf('ArrayIterator', $iterator);
23
+    }
24
+}