protected function prepareAssertion() { $callers = debug_backtrace(); $testResult = new TestResult(); $testResult->testCase = basename($callers[1]['file'], '.php'); $testResult->testMethod = $callers[2]['function']; $this->currentTestCase = $testResult->testCase; TestResultCollection::addResult($testResult->testCase, $testResult); $this->totalAssertions++; }