/** * Tests the JImage::prepareDimensions method with a bogus scale so that an exception is thrown. * * @return void * * @expectedException InvalidArgumentException * @since 11.3 */ public function testPrepareDimensionsWithInvalidScale() { // Create a image handle of the correct size. $imageHandle = imagecreatetruecolor(100, 100); // Create a new JImageInspector from the image handle. $image = new JImageInspector($imageHandle); $dimensions = $image->prepareDimensions(123, 456, 42); }