public function startTest(\PHPUnit\Framework\Test $test) {
if ($this->isCiviTest($test)) {
error_reporting(E_ALL);
+ $GLOBALS['CIVICRM_TEST_CASE'] = $test;
}
if ($test instanceof HeadlessInterface) {
}
\CRM_Utils_Time::resetTime();
if ($this->isCiviTest($test)) {
+ unset($GLOBALS['CIVICRM_TEST_CASE']);
error_reporting(E_ALL & ~E_NOTICE);
$this->errorScope = NULL;
}
public function startTest(\PHPUnit\Framework\Test $test): void {
if ($this->isCiviTest($test)) {
error_reporting(E_ALL);
+ $GLOBALS['CIVICRM_TEST_CASE'] = $test;
}
if ($test instanceof HeadlessInterface) {
}
\CRM_Utils_Time::resetTime();
if ($this->isCiviTest($test)) {
+ unset($GLOBALS['CIVICRM_TEST_CASE']);
error_reporting(E_ALL & ~E_NOTICE);
$this->errorScope = NULL;
}
public function startTest(\PHPUnit_Framework_Test $test) {
if ($this->isCiviTest($test)) {
error_reporting(E_ALL);
+ $GLOBALS['CIVICRM_TEST_CASE'] = $test;
}
if ($test instanceof \Civi\Test\HeadlessInterface) {
}
\CRM_Utils_Time::resetTime();
if ($this->isCiviTest($test)) {
+ unset($GLOBALS['CIVICRM_TEST_CASE']);
error_reporting(E_ALL & ~E_NOTICE);
$this->errorScope = NULL;
}