Exemplo n.º 1
0
 /**
  * @dataProvider data_is_secure
  */
 public function test_is_secure($server_data, $expected)
 {
     $this->assertFalse($this->request->is_secure());
     $this->request->enable_super_globals();
     $_SERVER = $server_data;
     $this->request = new \phpbb\request\request($this->type_cast_helper);
     $this->assertSame($expected, $this->request->is_secure());
 }