public function testFromPost() { $key = 'context_test_post'; $_POST[$key] = 'foo'; $context = rex_context::fromPost(); $this->assertEquals($_POST[$key], $context->getParam($key)); }