When method names is the same as class name,
simpletest gives error:
Fatal error: Call to a member function paintPass() on
a non-object in simpletest/simple_test.php on line 115
Class testBug extends UnitTestCase {
function testBug() {
$this->assertTrue(true);
}
}
$test = new TestBug();
$test->run(new HtmlReporter());
Logged In: YES
user_id=695819
Hi.
With PHP4 (and PHP5 to keep compatibility) a method withthe
same name as the class is actually the constructor. That is,
you have overridden the constructor in your example.
This is a language issue rather than a SimpleTest one I am
afraid.
yours, Marcus