From 544ef3bc588d4180d7ecad15bdacd43813a7c5c5 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 12 Dec 2019 14:51:10 +0000 Subject: update composer libs and minor notifications display fixes --- .../php-markdown/test/unit/MarkdownExtraTest.php | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php (limited to 'vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php') diff --git a/vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php b/vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php new file mode 100644 index 000000000..42d7b8a61 --- /dev/null +++ b/vendor/michelf/php-markdown/test/unit/MarkdownExtraTest.php @@ -0,0 +1,51 @@ +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) + ); + } +} -- cgit v1.2.3