Closed (won't fix)
Project:
SimpleTest
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
2 Dec 2007 at 12:05 UTC
Updated:
19 Mar 2008 at 02:14 UTC
Jump to comment: Most recent file
I've attempted to use the method assertError(). This results in a method not found error from PHP:
from drupal_test_case.php, line 662.
function assertError($expected = false, $message = "%s") {
//$queue = &SimpleErrorQueue::instance(); <-- this static method doesn't exist in SimpleErrorQueue.
// this technique for getting a queue object is found elsewhere in the Simpletest code.
$context = &SimpleTest::getContext();
$queue = &$context->get('SimpleErrorQueue');
// isEmpty doesn't exist.
if ($queue->isEmpty()) {
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | expecterrorSimpleTest.patch | 4.97 KB | Rok Žlender |
Comments
Comment #1
Rok Žlender commentedAsserterror is deprecated in latest SimpleTest. This is their explanation:
My patch copies expectError form UnitTester. So now you can do something like this
This will give you a pass without exception.
Comment #2
Rok Žlender commentedComment #3
boombatower commentedSince the method is deprecated, this issue appears to have died, and focus has shifted to full coverage of 7.x I think it is fair to say this won't/doesn't need to get fixed.