function test_setContainerContent() { $html = '<html><head>' . '</head><body>' . '<div class="block sc-content-cnt1"></div>' . '</body></html>'; $page = new Page($html); $page->setContainerContent('cnt1', '<p>test_content</p>'); $o = (string) $page; $this->assertTrue(strpos($o, 'test_content') !== -1); }