22
33include __DIR__ .'/../lib/ImageResize.php ' ;
44
5- use \Eventviva \ImageResize ;
6- use \Eventviva \ImageResizeException ;
5+ use \Gumlet \ImageResize ;
6+ use \Gumlet \ImageResizeException ;
77
88if (version_compare (PHP_VERSION , '7.0.0 ' ) >= 0 && !class_exists ('PHPUnit_Framework_TestCase ' )) {
99 class_alias ('PHPUnit\Framework\TestCase ' , 'PHPUnit_Framework_TestCase ' );
@@ -32,7 +32,7 @@ public function testLoadGif()
3232 $ resize = new ImageResize ($ image );
3333
3434 $ this ->assertEquals (IMAGETYPE_GIF , $ resize ->source_type );
35- $ this ->assertInstanceOf ('\Eventviva \ImageResize ' , $ resize );
35+ $ this ->assertInstanceOf ('\Gumlet \ImageResize ' , $ resize );
3636 }
3737
3838 public function testLoadJpg ()
@@ -41,7 +41,7 @@ public function testLoadJpg()
4141 $ resize = new ImageResize ($ image );
4242
4343 $ this ->assertEquals (IMAGETYPE_JPEG , $ resize ->source_type );
44- $ this ->assertInstanceOf ('\Eventviva \ImageResize ' , $ resize );
44+ $ this ->assertInstanceOf ('\Gumlet \ImageResize ' , $ resize );
4545 }
4646
4747 public function testLoadIgnoreXmpExifJpg ()
@@ -50,7 +50,7 @@ public function testLoadIgnoreXmpExifJpg()
5050 $ resize = new ImageResize ($ image );
5151
5252 $ this ->assertEquals (IMAGETYPE_JPEG , $ resize ->source_type );
53- $ this ->assertInstanceOf ('\Eventviva \ImageResize ' , $ resize );
53+ $ this ->assertInstanceOf ('\Gumlet \ImageResize ' , $ resize );
5454 }
5555
5656 public function testLoadPng ()
@@ -59,23 +59,23 @@ public function testLoadPng()
5959 $ resize = new ImageResize ($ image );
6060
6161 $ this ->assertEquals (IMAGETYPE_PNG , $ resize ->source_type );
62- $ this ->assertInstanceOf ('\Eventviva \ImageResize ' , $ resize );
62+ $ this ->assertInstanceOf ('\Gumlet \ImageResize ' , $ resize );
6363 }
6464
6565 public function testLoadString ()
6666 {
6767 $ resize = ImageResize::createFromString (base64_decode ($ this ->image_string ));
6868
6969 $ this ->assertEquals (IMAGETYPE_GIF , $ resize ->source_type );
70- $ this ->assertInstanceOf ('\Eventviva \ImageResize ' , $ resize );
70+ $ this ->assertInstanceOf ('\Gumlet \ImageResize ' , $ resize );
7171 }
7272
7373 /**
7474 * Bad load tests
7575 */
7676
7777 /**
78- * @expectedException \Eventviva \ImageResizeException
78+ * @expectedException \Gumlet \ImageResizeException
7979 * @expectedExceptionMessage File does not exist
8080 */
8181 public function testLoadNoFile ()
@@ -84,7 +84,7 @@ public function testLoadNoFile()
8484 }
8585
8686 /**
87- * @expectedException \Eventviva \ImageResizeException
87+ * @expectedException \Gumlet \ImageResizeException
8888 * @expectedExceptionMessage Unsupported file type
8989 */
9090 public function testLoadUnsupportedFile ()
@@ -93,7 +93,7 @@ public function testLoadUnsupportedFile()
9393 }
9494
9595 /**
96- * @expectedException \Eventviva \ImageResizeException
96+ * @expectedException \Gumlet \ImageResizeException
9797 * @expectedExceptionMessage image_data must not be empty
9898 */
9999 public function testLoadUnsupportedFileString ()
@@ -102,7 +102,7 @@ public function testLoadUnsupportedFileString()
102102 }
103103
104104 /**
105- * @expectedException \Eventviva \ImageResizeException
105+ * @expectedException \Gumlet \ImageResizeException
106106 * @expectedExceptionMessage Unsupported image type
107107 */
108108 public function testLoadUnsupportedImage ()
@@ -117,7 +117,7 @@ public function testLoadUnsupportedImage()
117117 }
118118
119119 /**
120- * @expectedException \Eventviva \ImageResizeException
120+ * @expectedException \Gumlet \ImageResizeException
121121 * @expectedExceptionMessage Unsupported image type
122122 */
123123 public function testInvalidString ()
@@ -284,7 +284,7 @@ public function testCropPosition()
284284
285285 $ resize ->crop (50 , 50 , false , $ resize ::CROPRIGHT );
286286
287- $ reflection_class = new ReflectionClass ('\Eventviva \ImageResize ' );
287+ $ reflection_class = new ReflectionClass ('\Gumlet \ImageResize ' );
288288 $ source_x = $ reflection_class ->getProperty ('source_x ' );
289289 $ source_x ->setAccessible (true );
290290
@@ -478,15 +478,15 @@ public function testExceptionEmpty()
478478 $ e = new ImageResizeException ();
479479
480480 $ this ->assertEquals ("" , $ e ->getMessage ());
481- $ this ->assertInstanceOf ('\Eventviva \ImageResizeException ' , $ e );
481+ $ this ->assertInstanceOf ('\Gumlet \ImageResizeException ' , $ e );
482482 }
483483
484484 public function testExceptionMessage ()
485485 {
486486 $ e = new ImageResizeException ("General error " );
487487
488488 $ this ->assertEquals ("General error " , $ e ->getMessage ());
489- $ this ->assertInstanceOf ('\Eventviva \ImageResizeException ' , $ e );
489+ $ this ->assertInstanceOf ('\Gumlet \ImageResizeException ' , $ e );
490490 }
491491
492492 public function testExceptionExtending ()
@@ -502,7 +502,7 @@ public function testExceptionThrown()
502502 throw new ImageResizeException ("General error " );
503503 } catch (\Exception $ e ) {
504504 $ this ->assertEquals ("General error " , $ e ->getMessage ());
505- $ this ->assertInstanceOf ('\Eventviva \ImageResizeException ' , $ e );
505+ $ this ->assertInstanceOf ('\Gumlet \ImageResizeException ' , $ e );
506506 return ;
507507 }
508508 $ this ->fail ();
0 commit comments