Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
.
namespace core;
/**
* Test markdown text format.
*
* This is not a complete markdown test, it just validates
* Moodle integration works.
*
* See http://daringfireball.net/projects/markdown/basics
* for more format information.
*
* @package core
* @category test
* @copyright 2012 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class markdown_test extends \basic_testcase {
public function test_paragraphs() {
$text = "one\n\ntwo";
$result = "one
\n\ntwo
\n";
$this->assertSame($result, markdown_to_html($text));
}
public function test_headings() {
$text = "Header 1\n====================\n\n## Header 2";
$result = "Header 1
\n\nHeader 2
\n";
$this->assertSame($result, markdown_to_html($text));
}
public function test_lists() {
$text = "* one\n* two\n* three\n";
$result = "\n";
$this->assertSame($result, markdown_to_html($text));
}
public function test_links() {
$text = "some [example link](http://example.com/)";
$result = "some example link
\n";
$this->assertSame($result, markdown_to_html($text));
}
public function test_tabs() {
$text = "a\tbb\tccc\tя\tюэ\t水\tabcd\tabcde\tabcdef";
$result = "a bb ccc я юэ 水 abcd abcde abcdef
\n";
$this->assertSame($result, markdown_to_html($text));
}
}