object = new Image_PNG_Inline(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 clickable thumbnail. The options are the maximum width' . ' and height in pixels. The original aspect ratio is preserved.'; $this->assertEquals( $info, Image_PNG_Inline::getInfo() ); } /** * Test for getName * * @return void * * @group medium */ public function testGetName() { $this->assertEquals( "Inline", Image_PNG_Inline::getName() ); } /** * Test for getMIMEType * * @return void * * @group medium */ public function testGetMIMEType() { $this->assertEquals( "Image", Image_PNG_Inline::getMIMEType() ); } /** * Test for getMIMESubtype * * @return void * * @group medium */ public function testGetMIMESubtype() { $this->assertEquals( "PNG", Image_PNG_Inline::getMIMESubtype() ); } /** * Test for applyTransformation * * @return void * * @group medium */ public function testApplyTransformation() { $buffer = "PMA_PNG_Inline"; $options = array("./image/", "200", "wrapper_link"=>"PMA_wrapper_link"); $result = ''; $this->assertEquals( $result, $this->object->applyTransformation($buffer, $options) ); } }