|
|
|
Sample code:
function test_error_and_exception () {
count(); // results in warning
throw new exception('buuuuaa'); // this exception nukes simpletest
}
function test_fails_with_exception () {
return;
}
fails in both tests with:
Exception: lib/dml/simpletest/testdml.php / ? dml_test / ? test_error_and_exception
Unexpected exception of type [Exception] with message [buuuuaa] in [C:\workspace\moodle\lib\dml\simpletest\testdml.php line 65]
Exception: lib/dml/simpletest/testdml.php / ? dml_test / ? test_fails_with_exception
Unexpected PHP error [count() expects at least 1 parameter, 0 given] severity [E_WARNING] in [C:\workspace\moodle\lib\dml\simpletest\testdml.php line 64]
working on a temporary patch ;-)
|
|
Description
|
Sample code:
function test_error_and_exception () {
count(); // results in warning
throw new exception('buuuuaa'); // this exception nukes simpletest
}
function test_fails_with_exception () {
return;
}
fails in both tests with:
Exception: lib/dml/simpletest/testdml.php / ? dml_test / ? test_error_and_exception
Unexpected exception of type [Exception] with message [buuuuaa] in [C:\workspace\moodle\lib\dml\simpletest\testdml.php line 65]
Exception: lib/dml/simpletest/testdml.php / ? dml_test / ? test_fails_with_exception
Unexpected PHP error [count() expects at least 1 parameter, 0 given] severity [E_WARNING] in [C:\workspace\moodle\lib\dml\simpletest\testdml.php line 64]
working on a temporary patch ;-) |
Show » |
committed 3 files to 'Moodle CVS' - 05/Dec/08 08:19 AM
| MDL-17534 simpletest: temporary fix for exception problems
|
|
|
made changes - 13/Nov/09 04:08 PM
| Field |
Original Value |
New Value |
|
Assignee
|
Nicolas Connault
[ nicolasconnault
]
|
moodle.com
[ moodle.com
]
|
|
We should also report it upstream
thanks