DomDocument::loadHTML() error during phpunit test execution
Posted
by ranhan
on Stack Overflow
See other posts from Stack Overflow
or by ranhan
Published on 2010-06-11T19:50:55Z
Indexed on
2010/06/11
19:52 UTC
Read the original article
Hit count: 171
I am currently trying to write some unit test against my zend framework controller. When I run the following code I receive this error:
public function testListActionShouldContainListTable()
{
$this->loginToSystem();
$uri = $this->_uriBase . 'campaign/list';
$_SERVER["REQUEST_URI"] = $uri;
$this->dispatch('/campaign/list');
$this->assertController('campaign');
$this->assertAction('list');
$this->assertQueryCount('#list',1);
}
CampaignControllerTests::testListActionShouldContainListTable
DOMDocument::loadHTML(): ID alrt already defined in Entity, line: 36
This occurs using any of the assertQuery and assertQueryContains methods. I have searched around but am not really finding a good answer to why it won't allow me to find this html node or how to get around this error.
Thanks in advance for any help!
© Stack Overflow or respective owner