object = new Text_Plain_Substring(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 getName * * @return void * * @group medium */ public function testGetName() { $this->assertEquals( "Substring", Text_Plain_Substring::getName() ); } /** * Test for getMIMEType * * @return void * * @group medium */ public function testGetMIMEType() { $this->assertEquals( "Text", Text_Plain_Substring::getMIMEType() ); } /** * Test for getMIMESubtype * * @return void * * @group medium */ public function testGetMIMESubtype() { $this->assertEquals( "Plain", Text_Plain_Substring::getMIMESubtype() ); } /** * Test for applyTransformation * * @return void * * @group medium */ public function testApplyTransformation() { $buffer = "PMA_BUFFER"; $options = array(1, 3, 'suffix'); $this->assertEquals( "suffixMA_suffix", $this->object->applyTransformation($buffer, $options) ); } }