summaryrefslogtreecommitdiffstats
path: root/tests/PlanetErrorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PlanetErrorTest.php')
-rw-r--r--tests/PlanetErrorTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/PlanetErrorTest.php b/tests/PlanetErrorTest.php
new file mode 100644
index 0000000..d2f4599
--- /dev/null
+++ b/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