static function getDifferenceEngine($context, $result, &$rcTest) { if (class_exists('RCTest') && RCTest::isEnabled()) { if ($rcTest && $rcTest->isTestTime()) { $result = $rcTest->getResultParams(); // okay, so let's blow away this cookie so that if // the test fails to load (RC Patrol bug) the user // isn't cut off from another test $rcTest->setTestActive(false); } } return new DifferenceEngine($context, RCPatrol::cleanOldId($result['old']), $result['new']); }