Example #1
0
 public function testMessyTitleContent()
 {
     $tag = new SimpleTitleTag(array());
     $this->assertTrue($tag->expectEndTag());
     $tag->addContent('<b>Hello</b>');
     $tag->addContent('<em>World</em>');
     $this->assertEqual($tag->getText(), 'HelloWorld');
 }
Example #2
0
 function testTitleSetting()
 {
     $title = new SimpleTitleTag(array());
     $title->addContent('Title');
     $page = new SimplePage(new MockSimpleHttpResponse());
     $page->AcceptTag($title);
     $this->assertEqual($page->getTitle(), 'Title');
 }