I mangaed to find the problem by using the bold code below :-
public function testAddAction(){
$this->dispatch('/unit/add');
print_r($this->getResponse());
die();
$this->assertResponseCode('200');
$this->assertQuery('form-test');
}
This displayed an error sayng that I had use mktime() rather than time()
(mktime is depreciated). I guess this was causing DOM problems.
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/PHPUnit-testing-generating-Zend-Dom-Exception-tp2130849p2132212.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论