/
home
/
techb158
/
dev.balacoffee.com
/
vendor
/
gumlet
/
php-image-resize
/
test
/
/home/techb158/dev.balacoffee.com/vendor/gumlet/php-image-resize/test
mkdir
upload
Name
Size
Mode
Actions
ressources/
-
0755
rm
ImageResizeExceptionTest.php
1203
0644
edit
dl
rm
ImageResizeTest.php
14051
0644
edit
dl
rm
Edit:
/home/techb158/dev.balacoffee.com/vendor/gumlet/php-image-resize/test/ImageResizeExceptionTest.php
(1203B)
<?php use \Gumlet\ImageResize; use \Gumlet\ImageResizeException; use \PHPUnit\Framework\TestCase; class ImageResizeExceptionTest extends TestCase { public function testExceptionEmpty() { $e = new ImageResizeException(); $this->assertEquals("", $e->getMessage()); $this->assertInstanceOf('\Gumlet\ImageResizeException', $e); } public function testExceptionMessage() { $e = new ImageResizeException("General error"); $this->assertEquals("General error", $e->getMessage()); $this->assertInstanceOf('\Gumlet\ImageResizeException', $e); } public function testExceptionExtending() { $e = new ImageResizeException("General error"); $this->assertInstanceOf('\Exception', $e); } public function testExceptionThrown() { try{ throw new ImageResizeException("General error"); } catch (\Exception $e) { $this->assertEquals("General error", $e->getMessage()); $this->assertInstanceOf('\Gumlet\ImageResizeException', $e); return; } $this->fail(); } } // It's pretty easy to get your attention these days, isn't it? :D
Save
cmd:
run