Example #1
0
 public function testGetPost()
 {
     $key = 'getParamName';
     $default = 'defaultGetParamValue';
     $postValue = 'someGetParamValue';
     $this->request->expects($this->once())->method('getPost')->with($key, $default)->will($this->returnValue($postValue));
     $this->assertEquals($postValue, $this->context->getPost($key, $default));
 }