public function testRedirect() { $url = 'http://redirect/'; $this->serverMock->expects($this->once())->method('sendHeader')->with("Location: " . $url); $this->appMock->expects($this->once())->method('shutdown'); $this->controller->redirect($url); }