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'); }
function testTitleSetting() { $title = new SimpleTitleTag(array()); $title->addContent('Title'); $page = new SimplePage(new MockSimpleHttpResponse()); $page->AcceptTag($title); $this->assertEqual($page->getTitle(), 'Title'); }