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'); }
/** * Accessor for current MIME type. * @return string MIME type as string; e.g. 'text/html' * @access public */ function getMimeType() { return $this->page->getMimeType(); }