/** * Explicitly sets the content of the request body * * @param string $content The body content, for example arguments of a PUT request * @return void * @api */ public function setContent($content) { parent::setContent($content); $this->arguments = $this->buildUnifiedArguments($this->arguments, array(), array()); }
/** * @test */ public function contentCanBeSetAndRetrieved() { $message = new Message(); $message->setContent('Two households, both alike in dignity, In fair Verona, where we lay our scene'); $this->assertEquals('Two households, both alike in dignity, In fair Verona, where we lay our scene', $message->getContent()); }