diff options
author | nashe <thomas@chauchefoin.fr> | 2017-07-07 23:50:24 +0100 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-07-07 23:50:24 +0100 |
commit | 61008824fab2aceadd499f6d06a6cb7de41a48c6 (patch) | |
tree | 56561fe37b0b489c3a00858ade2229ee56e434f6 /tests/PlanetErrorTest.php | |
parent | 78d7d92d8faa35cd672dcdfea0e110c420d4d49c (diff) | |
download | planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar.gz planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar.bz2 planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.tar.xz planet-61008824fab2aceadd499f6d06a6cb7de41a48c6.zip |
Test PlanetError
?!
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 |