Пример #1
0
 function testMimeAccessor()
 {
     $headers = new MockSimpleHttpHeaders();
     $headers->setReturnValue('getMimeType', 'text/html');
     $response = new MockSimpleHttpResponse();
     $response->setReturnValue('getHeaders', $headers);
     $page = new SimplePage($response);
     $this->assertEqual($page->getMimeType(), 'text/html');
 }
Пример #2
0
 /**
  *    Accessor for current MIME type.
  *    @return string    MIME type as string; e.g. 'text/html'
  *    @access public
  */
 function getMimeType()
 {
     return $this->page->getMimeType();
 }