예제 #1
0
파일: CCIn.php 프로젝트: clancats/core
 /**
  * Test input SERVER
  */
 public function testServer()
 {
     // generate server data
     $this->fakeServerData();
     // check server params
     $this->assertEquals(CCIn::server('server_port'), 80);
     // check server param default
     $this->assertEquals(CCIn::server('not_existing', 'test'), 'test');
     // check post param has
     $this->assertFalse(CCIn::has_server('not_existing'));
     // check post param has
     $this->assertTrue(CCIn::has_server('server_port'));
 }