object = new Image_JPEG_Link(new PluginManager()); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. * * @access protected * @return void */ protected function tearDown() { unset($this->object); } /** * Test for getInfo * * @return void * * @group medium */ public function testGetInfo() { $info = __('Displays a link to download this image.'); $this->assertEquals( $info, Image_JPEG_Link::getInfo() ); } /** * Test for getName * * @return void * * @group medium */ public function testGetName() { $this->assertEquals( "ImageLink", Image_JPEG_Link::getName() ); } /** * Test for getMIMEType * * @return void * * @group medium */ public function testGetMIMEType() { $this->assertEquals( "Image", Image_JPEG_Link::getMIMEType() ); } /** * Test for getMIMESubtype * * @return void * * @group medium */ public function testGetMIMESubtype() { $this->assertEquals( "JPEG", Image_JPEG_Link::getMIMESubtype() ); } /** * Test for applyTransformation * * @return void * * @group medium */ public function testApplyTransformation() { $buffer = "PMA_IMAGE_LINK"; $options = array("./image/", "200", "wrapper_link"=>"PMA_wrapper_link"); $result = '[BLOB]'; $this->assertEquals( $result, $this->object->applyTransformation($buffer, $options) ); } }