/** * setUp * * @return mixed * * @access public */ public function setUp() { global $_SERVER; $_SERVER['HTTP_HOST'] = 'example.com'; $_SERVER['REQUEST_URI'] = '/test'; parent::setUp(); }
/** * setUp * * @return mixed * * @access public */ public function setUp() { parent::setUp(); $this->favicon = 'favicon'; $this->sizes = [1]; $this->pattern = 'size:%s'; $this->sizeArray = ['rel' => 'apple-touch-icon-precomposed', 'sizes' => '1x1', 'href' => 'size:1']; $this->favArray = [['rel' => 'icon', 'href' => 'favicon'], ['rel' => 'shortcut icon', 'href' => 'favicon']]; }
/** * getMockAuraEscaper * * @return mixed * * @access protected */ protected function getMockAuraEscaper() { $escaper = parent::getMockAuraEscaper(); $escaper->expects($this->any())->method('html')->will($this->returnCallback(function () { return func_get_args()[0]; })); return $escaper; }