object = new Text_Plain_Imagelink(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 an image and a link; ' . 'the column contains the filename. The first option' . ' is a URL prefix like "http://www.example.com/". ' . 'The second and third options' . ' are the width and the height in pixels.'; $this->assertEquals( $info, Text_Plain_Imagelink::getInfo() ); } /** * Test for getName * * @return void * * @group medium */ public function testGetName() { $this->assertEquals( "Image Link", Text_Plain_Imagelink::getName() ); } /** * Test for getMIMEType * * @return void * * @group medium */ public function testGetMIMEType() { $this->assertEquals( "Text", Text_Plain_Imagelink::getMIMEType() ); } /** * Test for getMIMESubtype * * @return void * * @group medium */ public function testGetMIMESubtype() { $this->assertEquals( "Plain", Text_Plain_Imagelink::getMIMESubtype() ); } /** * Test for applyTransformation * * @return void * * @group medium */ public function testApplyTransformation() { $buffer = "PMA_IMAGE"; $options = array("./image/", "200"); $result = '' . 'PMA_IMAGE'; $this->assertEquals( $result, $this->object->applyTransformation($buffer, $options) ); } }