Zend Framework Unit Test fails on assertResponseCode(200)
问题 I am running some unit test on my Zend Framework application. What I cant understand is that the following test fails: public function testCreateFaqItem() { $this->LoginUser(); $this->dispatch('/faq/admin-faq/create'); var_dump($this->getResponse()); $this->assertResponseCode(200); $this->assertQueryContentContains('h1', 'Create'); $this->assertController('admin-faq'); $this->assertAction('edit'); } it fails if on assertResponseCode(200), when i remove the assertResponseCode(200), the test