2010年5月6日星期四

[fw-mvc] Re: PHPUnit testing generating Zend_Dom_Exception

Thanks for your help.

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.

没有评论: