contains() public method

public contains ( $key ) : boolean
return boolean whether the request contains an item with the specified key
コード例 #1
0
ファイル: THttpRequestTest.php プロジェクト: pradosoft/prado
 public function testContains()
 {
     $request = new THttpRequest();
     $request->init(null);
     // Simulate a request with just a service
     $_GET['page'] = 'Home';
     $request->resolveRequest(array('page'));
     self::assertTrue($request->contains('page'));
     self::assertFalse($request->contains('param'));
 }