Пример #1
0
 /**
  * setUp
  *
  * @return mixed
  *
  * @access public
  */
 public function setUp()
 {
     global $_SERVER;
     $_SERVER['HTTP_HOST'] = 'example.com';
     $_SERVER['REQUEST_URI'] = '/test';
     parent::setUp();
 }
Пример #2
0
 /**
  * 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']];
 }
Пример #3
0
 /**
  * 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;
 }