X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem%2FUnitTests.php;h=f1d3ce640a1ee991cd17caa41ae22842b519bf5d;hb=1c489cfa97cabd1c4119cd9e7ec73d08b5660255;hp=ea220a41694868d0b2c4d2627f4c03d702c03517;hpb=e4d7d444a8ca00a19a7d92855c8085858d977d02;p=civicrm-core.git diff --git a/CRM/Utils/System/UnitTests.php b/CRM/Utils/System/UnitTests.php index ea220a4169..f1d3ce640a 100644 --- a/CRM/Utils/System/UnitTests.php +++ b/CRM/Utils/System/UnitTests.php @@ -1,34 +1,18 @@ supports_form_extensions = FALSE; } + /** + * @param string $name + * @param string $value + */ + public function setHttpHeader($name, $value) { + Civi::$statics[__CLASS__]['header'][] = ("$name: $value"); + } + /** * @inheritDoc */ public function authenticate($name, $password, $loadCMSBootstrap = FALSE, $realPath = NULL) { - $retVal = array(1, 1, 12345); + $retVal = [1, 1, 12345]; return $retVal; } /** * Bootstrap the phony CMS. */ - public function loadBootStrap($params = array(), $loadUser = TRUE, $throwError = TRUE, $realPath = NULL) { + public function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE, $realPath = NULL) { return TRUE; }