diff options
author | wei <> | 2006-07-10 01:03:05 +0000 |
---|---|---|
committer | wei <> | 2006-07-10 01:03:05 +0000 |
commit | c0aeb59489d638d43eb19ff044ea12c54c998b6a (patch) | |
tree | c07ed38ce8809406a9b547770de4127538d93163 /tests | |
parent | 79611edbd514621fa5cf61c92556f94ed5d203dc (diff) |
Update tex builder.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_tools/simpletest/errors.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_tools/simpletest/errors.php b/tests/test_tools/simpletest/errors.php index 0608de60..b32cd5fe 100644 --- a/tests/test_tools/simpletest/errors.php +++ b/tests/test_tools/simpletest/errors.php @@ -41,7 +41,7 @@ function invoke($method) { set_error_handler('simpleTestErrorHandler'); parent::invoke($method); - $queue = &SimpleErrorQueue::instance(); + $queue = SimpleErrorQueue::instance(); while (list($severity, $message, $file, $line, $globals) = $queue->extract()) { $severity = SimpleErrorQueue::getSeverityAsString($severity); $test_case = $this->getTestCase(); @@ -121,7 +121,7 @@ * @access public * @static */ - function &instance() { + static function instance() { static $queue = false; if (! $queue) { $queue = new SimpleErrorQueue(); @@ -137,7 +137,7 @@ * @access public * @static */ - function getSeverityAsString($severity) { + static function getSeverityAsString($severity) { static $map = array( E_STRICT => 'E_STRICT', E_ERROR => 'E_ERROR', @@ -174,7 +174,7 @@ $label = SimpleErrorQueue::getSeverityAsString($severity); error_log("$label: $message in $filename on line $line"); } - $queue = &SimpleErrorQueue::instance(); + $queue = SimpleErrorQueue::instance(); $queue->add($severity, $message, $filename, $line, $super_globals); set_error_handler('simpleTestErrorHandler'); } |