Sam Hemelryk
9915109268
MDL-48304 moodle_url: compare now considers anchor
2014-11-20 15:38:34 +13:00
Tim Hunt
1fa2823de8
MDL-46688 weblib: improve the highlight function.
...
Thanks to Joseph Baxter for suggesting some of the test cases.
2014-08-08 17:51:58 +01:00
Frederic Massart
0a8b3583ca
MDL-42995 libraries: Global function to strip pluginfile content
2014-01-06 09:29:25 +01:00
Petr Škoda
a9d2f1b414
MDL-41707 allow custom location of external test files used from unit tests
2013-09-27 10:47:56 +02:00
Simon Coggins
d06ffbdf2d
MDL-41806 Add assessors to moodle_url class
...
New assessors for scheme, host and port.
2013-09-16 16:14:29 +12:00
Petr Škoda
037d673ea9
MDL-39474 add set_debugging() tests
2013-08-21 15:41:35 +02:00
Petr Škoda
b33bf039f3
MDL-39915 cleanup core_weblib_testcase
2013-07-28 15:06:23 +02:00
Sam Hemelryk
61b223a632
MDL-40635 moodle_url: can now set anchor during construction
2013-07-15 10:17:49 +12:00
Petr Škoda
66056f994f
MDL-39096 fix obfuscate_text() utf-8 compatibility
2013-06-07 22:38:48 +02:00
Eloy Lafuente (stronk7)
bee592add8
Merge branch 'wip-MDL-39216-m25' of git://github.com/samhemelryk/moodle
2013-05-01 02:29:36 +02:00
Sam Hemelryk
a697000b53
MDL-39216 url: included test for empty string param
2013-05-01 12:27:36 +12:00
Sam Hemelryk
45d9752205
MDL-39216 url: updated tests to show desired outcome
2013-04-30 11:09:47 +12:00
Sam Hemelryk
616396a6cf
MDL-39216 url: new moodle_url tests for valueless params
2013-04-30 11:09:47 +12:00
Tim Hunt
328ac3069b
MDL-39378 Improve s() performance.
...
These changes give about a 10% speed-up in this function. The significant changes are:
1. Simplify the if logic to remove unnecssary cases.
2. Dont pass default argument values to htmlspecialchars, just using the
defaults is faster.
3. I can confirm that /i regex is faster than the equivalent regex without the i.
I also added more unit tests to test the edge cases.
2013-04-26 18:49:25 +01:00
Tim Hunt
0c6f9e759b
MDL-39378 s(): fix bad hex regex
2013-04-26 18:38:29 +01:00
Dan Poltawski
be576cb0e8
Merge branch 'wip-mdl-36674' of git://github.com/rajeshtaneja/moodle
2013-01-21 10:15:16 +08:00
Rajesh Taneja
72b181ba59
MDL-36674 Administration: out_as_local_url will check for both http and https url's
...
out_as_local_url will first check if url passed in wwwroot, if it's not then it will check
if loginhttps is enabled and url is httpswwwroot
2013-01-14 15:59:06 +08:00
Petr Škoda
4fa7fdeada
MDL-37286 improve coding style in unit tests
2013-01-12 15:28:57 +01:00
Petr Škoda
e7259ec998
MDL-37286 add new combined_progress_trace
...
This type of trace should be useful when multiple trace outputs requested.
2013-01-12 15:16:39 +01:00
Petr Škoda
837e304260
MDL-37286 add progres_trace buffer and unit tests
2013-01-12 15:16:38 +01:00
sam marshall
ffe4de973b
MDL-29624 Media embedding system, part 0: Add get_path() to moodle_url
...
(It may not seem directly related, but this function is needed for the
media embedding system.
2012-05-09 18:22:12 +01:00
Petr Skoda
bd319d12c2
MDL-30686 fix typo
...
Thanks Dan Poltawski!
2012-04-27 13:39:18 +02:00
Petr Skoda
f0202ae9a2
MDL-30686 improve accuracy of qualified_me() by trying PAGE->url first
...
This should help SSL proxies and returning to current page after require_login().
2012-04-27 13:39:18 +02:00
Petr Skoda
4ca04fb58b
MDL-32569 remove remaining references to simpletest and improve events test
2012-04-21 17:08:30 +02:00
Petr Skoda
a3d5830a0a
MDL-32149 PHPUnit test support - part 2
...
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00