public function testGetPost() { $_POST['post1'] = 'val1'; $this->assertEquals('val1', $this->_request->getPost('post1')); $this->assertEquals('foo', $this->_request->getPost('BAR', 'foo')); $_POST['post2'] = 'val2'; $expected = array('post1' => 'val1', 'post2' => 'val2'); $this->assertEquals($expected, $this->_request->getPost()); }