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,23 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * @internal
7
+ * @covers \Telnyx\ErrorObject
8
+ */
9
+final class ErrorObjectTest extends \Telnyx\TestCase
10
+{
11
+    public function testDefaultValues()
12
+    {
13
+        $error = ErrorObject::constructFrom([]);
14
+
15
+        static::assertNull($error->code);
16
+        static::assertNull($error->title);
17
+        static::assertNull($error->detail);
18
+        static::assertNull($error->source);
19
+        static::assertNull($error->pointer);
20
+        static::assertNull($error->parameter);
21
+        static::assertNull($error->meta);
22
+    }
23
+}