* @see HookInterface
*/
class CiviTestListener extends \PHPUnit_Framework_BaseTestListener {
- /**
- * @var \CRM_Core_TemporaryErrorScope
- */
- private $errorScope;
/**
* @var array
private $cache = [];
/**
- * @var \CRM_Core_Transaction|NULL
+ * @var \CRM_Core_Transaction|null
*/
private $tx;
public function startTest(\PHPUnit_Framework_Test $test) {
if ($this->isCiviTest($test)) {
error_reporting(E_ALL);
- $this->errorScope = \CRM_Core_TemporaryErrorScope::useException();
}
if ($test instanceof \Civi\Test\HeadlessInterface) {
if ($test instanceof \Civi\Test\HookInterface) {
\CRM_Utils_Hook::singleton()->reset();
}
+ \CRM_Utils_Time::resetTime();
if ($this->isCiviTest($test)) {
error_reporting(E_ALL & ~E_NOTICE);
$this->errorScope = NULL;