Esempio n. 1
0
 public function testIsGet()
 {
     $sv = self::$test_data1;
     $sv[ServerInfo::KEY_REQUEST_METHOD] = ServerInfo::REQUEST_TYPE_GET;
     $info = new ServerInfo($sv);
     $expected = true;
     $actual = $info->isGet();
     $this->assertEquals($expected, $actual, __CLASS__ . "::" . __METHOD__ . ": line " . __LINE__);
     $sv[ServerInfo::KEY_REQUEST_METHOD] = ServerInfo::REQUEST_TYPE_POST;
     $info = new ServerInfo($sv);
     $expected = false;
     $actual = $info->isGet();
     $this->assertEquals($expected, $actual, __CLASS__ . "::" . __METHOD__ . ": line " . __LINE__);
 }