예제 #1
0
 /**
  * Test the JImage::resize to make sure images are resized properly.
  *
  * @return  void
  *
  * @since   11.4
  */
 public function testResize()
 {
     // Get a new JImage inspector.
     $image = new JImageInspector();
     $image->loadFile($this->testFile);
     $image->resize(1000, 682, false);
     // Verify that the resizeded image is the correct size.
     $this->assertEquals(682, imagesy($image->getClassProperty('handle')));
     $this->assertEquals(1000, imagesx($image->getClassProperty('handle')));
 }