summaryrefslogtreecommitdiffstats
path: root/common/tests/PlanetErrorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'common/tests/PlanetErrorTest.php')
-rw-r--r--common/tests/PlanetErrorTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/tests/PlanetErrorTest.php b/common/tests/PlanetErrorTest.php
new file mode 100644
index 0000000..d2f4599
--- /dev/null
+++ b/common/tests/PlanetErrorTest.php
@@ -0,0 +1,12 @@
+<?php
+
+use PHPUnit\Framework\TestCase;
+
+class PlanetErrorTest extends TestCase
+{
+ public function test_to_string()
+ {
+ $error = new PlanetError(1, 'foo');
+ $this->assertEquals('notice: foo', $error->toString());
+ }
+} \ No newline at end of file