Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4631e39
)
MDL-33359 - mtrace: dont output to STDOUT in unit tests
author
Dan Poltawski
<dan@moodle.com>
Sat, 26 May 2012 04:15:17 +0000
(12:15 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Mon, 28 May 2012 01:36:12 +0000
(09:36 +0800)
This allows us to use phpunit output buffering functions
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
8b0379b
..
23ee2f5
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-9642,7
+9642,7
@@
function address_in_subnet($addr, $subnetstr) {
*/
function mtrace($string, $eol="\n", $sleep=0) {
- if (defined('STDOUT')) {
+ if (defined('STDOUT')
and !PHPUNIT_TEST
) {
fwrite(STDOUT, $string.$eol);
} else {
echo $string . $eol;