Пример #1
0
 /**
  *    Accessor for plain text version of the page.
  *    @return string      Normalised text representation.
  *    @access public
  */
 function getContentAsText()
 {
     return $this->page->getText();
 }
Пример #2
0
 function testTextAccessor()
 {
     $response = new MockSimpleHttpResponse();
     $response->setReturnValue('getContent', '<b>Some</b> &quot;messy&quot; HTML');
     $page = new SimplePage($response);
     $this->assertEqual($page->getText(), 'Some "messy" HTML');
 }