predef_abbr = array( 'foo' => 'foobar-test', ); $result = $obj->transform('**Hello world, foo**'); $this->assertSame( '
Hello world, foo
', trim($result) ); } public function testSetupOfMultiplePredefinedAttributes() { $obj = new \Michelf\MarkdownExtra(); // Allows custom expansions of arreviations to their full version with the abbr tag $obj->predef_abbr = array( 'foo' => 'foobar-test', 'ISP' => 'Internet Service Provider', ); $result = $obj->transform('**I get internet from an ISP. foo.**'); $this->assertSame( 'I get internet from an ISP' . '. foo.
', trim($result) ); } public function testTransformWithNoMarkup() { $obj = new \Michelf\MarkdownExtra(); $obj->no_markup = true; $result = $obj->transform('This is a no markup test.'); $this->assertSame( 'This is a <strong class="custom">no markup</strong> test.
', trim($result) ); } }