summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-07-07 23:50:24 +0100
committernashe <thomas@chauchefoin.fr>2017-07-07 23:50:24 +0100
commit61008824fab2aceadd499f6d06a6cb7de41a48c6 (patch)
tree56561fe37b0b489c3a00858ade2229ee56e434f6
parent78d7d92d8faa35cd672dcdfea0e110c420d4d49c (diff)
downloadplanet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar
planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar.gz
planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar.bz2
planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar.xz
planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.zip
Test PlanetError
?!
-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