public function issueWithGetterAndDate()
 {
     $this->assertEquals('{ "issueId" : 1 , "title" : "New issue" , "createdAt" : "2012-03-19T08:37:00+00:00" }', $this->fixture->serialize(new net·xp_framework·unittest·webservices·rest·IssueWithGetter(1, 'New issue', new Date('2012-03-19 08:37:00', TimeZone::getByName('GMT')))));
 }
 /**
  * Write response headers
  *
  * @param  scriptlet.Response response
  * @param  peer.URL base
  * @param  string format
  */
 protected function writeHead($response, $base, $format)
 {
     $response->setContentType($this->mediaType);
     if (NULL !== $this->contentLength) {
         $response->setContentLength($this->contentLength);
     }
     if (NULL !== $this->lastModified) {
         $response->setHeader('Last-Modified', TimeZone::getByName('GMT')->translate($this->lastModified)->toString('D, d M Y H:i:s \\G\\M\\T'));
     }
 }
 public function issueWithGetterAndDate()
 {
     $this->assertXmlEquals('<root><issueId>1</issueId><title>New issue</title><createdAt>2012-03-19T08:37:00+00:00</createdAt></root>', $this->fixture->serialize(new net·xp_framework·unittest·webservices·rest·IssueWithGetter(1, 'New issue', new Date('2012-03-19 08:37:00', TimeZone::getByName('GMT')))));
 }