setPost() public method

set item to post
Since: 2.2.0
public setPost ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item
示例#1
0
 /**
  * testPost
  *
  * @since 2.2.0
  */
 public function testPost()
 {
     /* setup */
     Request::setPost('testKey', 'testValue');
     /* result */
     $result = Request::getPost('testKey');
     /* compare */
     $this->assertEquals('testValue', $result);
 }