X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/tests
home
/
cbholdings
/
pasukulu
/
lib
/
tests
/
ð
..
ð
accesslib_has_capability_test.php
(29.72 KB)
ð
accesslib_test.php
(240.86 KB)
ð
adminlib_test.php
(4.29 KB)
ð
admintree_test.php
(18.01 KB)
ð
ajaxlib_test.php
(4.4 KB)
ð
analysers_test.php
(12.79 KB)
ð
analytics
ð
antivirus_test.php
(11.81 KB)
ð
authlib_test.php
(19.04 KB)
ð
behat
ð
behat_lib_test.php
(3.25 KB)
ð
blocklib_test.php
(36.13 KB)
ð
check_test.php
(1.77 KB)
ð
client_test.php
(4.34 KB)
ð
collator_test.php
(12.06 KB)
ð
completionlib_test.php
(84.19 KB)
ð
component_test.php
(44.1 KB)
ð
componentlib_test.php
(6.91 KB)
ð
configonlylib_test.php
(5.93 KB)
ð
content
ð
content_test.php
(4.77 KB)
ð
context
ð
context_block_test.php
(4.14 KB)
ð
context_helper_test.php
(22.27 KB)
ð
context_test.php
(3.38 KB)
ð
core_media_player_native_test.php
(6.4 KB)
ð
core_renderer_template_exploit_test.php
(16.56 KB)
ð
coverage.php
(3.55 KB)
ð
cron_test.php
(6.86 KB)
ð
csslib_test.php
(1.56 KB)
ð
csvclass_test.php
(5.62 KB)
ð
curl_security_helper_test.php
(14.79 KB)
ð
customcontext_test.php
(4.66 KB)
ð
dataformat_test.php
(3.74 KB)
ð
datalib_test.php
(48.36 KB)
ð
datalib_update_with_unique_index_test.php
(6.06 KB)
ð
date_legacy_test.php
(13.62 KB)
ð
date_test.php
(25.77 KB)
ð
db
ð
editorlib_test.php
(1.95 KB)
ð
encryption_test.php
(8.68 KB)
ð
environment_test.php
(8.49 KB)
ð
event
ð
event_course_module_instance_list_viewed.php
(2.54 KB)
ð
event_course_module_viewed.php
(3.14 KB)
ð
exporter_test.php
(11.26 KB)
ð
external
ð
externallib_test.php
(2.02 KB)
ð
filelib_test.php
(77.16 KB)
ð
filestorage_zip_archive_test.php
(2.55 KB)
ð
filetypes_test.php
(10.06 KB)
ð
filter_manager_test.php
(3.31 KB)
ð
filterlib_test.php
(36.76 KB)
ð
fixtures
ð
formslib_test.php
(39.94 KB)
ð
gdlib_test.php
(5.68 KB)
ð
googlelib_test.php
(1.6 KB)
ð
gradelib_test.php
(11.96 KB)
ð
grades_external_test.php
(15.04 KB)
ð
grading_external_test.php
(26.33 KB)
ð
graphlib_test.php
(4.61 KB)
ð
grouplib_test.php
(109.11 KB)
ð
h5p_clean_orphaned_records_task_test.php
(3.16 KB)
ð
html2text_test.php
(7.54 KB)
ð
html_writer_test.php
(9.65 KB)
ð
htmlpurifier_test.php
(23.01 KB)
ð
http_client_test.php
(14.94 KB)
ð
hub
ð
ip_utils_test.php
(14.13 KB)
ð
jquery_test.php
(1.58 KB)
ð
ldaplib_test.php
(17.73 KB)
ð
licenselib_test.php
(11.58 KB)
ð
lock
ð
lock_config_test.php
(3.47 KB)
ð
lock_test.php
(5.3 KB)
ð
markdown_test.php
(2.24 KB)
ð
mathslib_test.php
(13.42 KB)
ð
medialib_test.php
(19.63 KB)
ð
message_test.php
(12.25 KB)
ð
messageinbound_test.php
(5.96 KB)
ð
messagelib_test.php
(56.36 KB)
ð
minify_test.php
(3.12 KB)
ð
modinfolib_test.php
(54.43 KB)
ð
moodle_page_test.php
(31.59 KB)
ð
moodle_url_test.php
(15.64 KB)
ð
moodlelib_current_language_test.php
(7.68 KB)
ð
moodlelib_test.php
(237.46 KB)
ð
moodlenet
ð
myprofilelib_test.php
(12.36 KB)
ð
navigation
ð
navigationlib_test.php
(31.79 KB)
ð
notification_test.php
(4.35 KB)
ð
oauth2
ð
oauth2_test.php
(23.06 KB)
ð
other
ð
output
ð
outputcomponents_test.php
(33.25 KB)
ð
outputfactories_test.php
(6.78 KB)
ð
outputrenderers_test.php
(1.62 KB)
ð
outputrequirementslib_test.php
(16.29 KB)
ð
pdflib_test.php
(3.18 KB)
ð
performance
ð
persistent_test.php
(30.53 KB)
ð
phpxmlrpc_test.php
(2.04 KB)
ð
plugin_manager_test.php
(27.4 KB)
ð
plugininfo
ð
portfoliolib_test.php
(8.4 KB)
ð
progress_display_test.php
(3.75 KB)
ð
progress_test.php
(14.48 KB)
ð
qrcode_test.php
(1.68 KB)
ð
questionlib_test.php
(100.67 KB)
ð
regex_test.php
(1.55 KB)
ð
report_helper_test.php
(2.62 KB)
ð
requirejs_test.php
(2.22 KB)
ð
rsslib_test.php
(7.35 KB)
ð
rtlcss_test.php
(56.86 KB)
ð
sample_questions.ser
(141.76 KB)
ð
sample_questions.xml
(102.62 KB)
ð
sample_questions_with_old_image_tag.ser
(4.85 KB)
ð
sample_questions_with_old_image_tag.xml
(4.08 KB)
ð
sample_questions_wrong.xml
(102.57 KB)
ð
scss_test.php
(4.26 KB)
ð
session_manager_test.php
(34.79 KB)
ð
session_redis_test.php
(13.56 KB)
ð
sessionlib_test.php
(12.32 KB)
ð
setuplib_test.php
(20.17 KB)
ð
statslib_test.php
(26.68 KB)
ð
string_manager_standard_test.php
(10.18 KB)
ð
tablelib_test.php
(25.12 KB)
ð
task
ð
text_test.php
(26.53 KB)
ð
theme_config_test.php
(9.94 KB)
ð
update_api_test.php
(6.62 KB)
ð
update_checker_test.php
(10.82 KB)
ð
update_code_manager_test.php
(8.88 KB)
ð
update_validator_test.php
(18.28 KB)
ð
upgrade_util_test.php
(5.32 KB)
ð
upgradelib_test.php
(69.6 KB)
ð
user_menu_test.php
(3.75 KB)
ð
user_test.php
(34.34 KB)
ð
useragent_test.php
(83.82 KB)
ð
weblib_format_text_test.php
(11.91 KB)
ð
weblib_test.php
(43.44 KB)
ð
xhprof_test.php
(3.14 KB)
ð
xhtml_container_stack_test.php
(4.05 KB)
ð
xmlize_test.php
(2.55 KB)
Editing: markdown_test.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 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 = "<p>one</p>\n\n<p>two</p>\n"; $this->assertSame($result, markdown_to_html($text)); } public function test_headings() { $text = "Header 1\n====================\n\n## Header 2"; $result = "<h1>Header 1</h1>\n\n<h2>Header 2</h2>\n"; $this->assertSame($result, markdown_to_html($text)); } public function test_lists() { $text = "* one\n* two\n* three\n"; $result = "<ul>\n<li>one</li>\n<li>two</li>\n<li>three</li>\n</ul>\n"; $this->assertSame($result, markdown_to_html($text)); } public function test_links() { $text = "some [example link](http://example.com/)"; $result = "<p>some <a href=\"http://example.com/\">example link</a></p>\n"; $this->assertSame($result, markdown_to_html($text)); } public function test_tabs() { $text = "a\tbb\tccc\tÑ\tÑÑ\tæ°Ž\tabcd\tabcde\tabcdef"; $result = "<p>a bb ccc Ñ ÑÑ æ°Ž abcd abcde abcdef</p>\n"; $this->assertSame($result, markdown_to_html($text)); } }
Upload File
Create Folder