diff options
Diffstat (limited to 'tests/PlanetErrorTest.php')
-rw-r--r-- | tests/PlanetErrorTest.php | 12 |
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 |