/** * @test */ public function renderSets404Status() { $templateUrl = \vfsStream::url('testDirectory') . '/template.html'; file_put_contents($templateUrl, 'template content'); $this->view->expects($this->once())->method('getTemplatePathAndFilename')->will($this->returnValue($templateUrl)); $this->view->render(); $this->assertEquals('404 Not Found', $this->response->getStatus()); }