/** * assert that the response is a redirect with $path (if set). * * @param string $path */ protected function responseIsRedirect($path = '') { $this->assertTrue($this->response->isRedirect()); if ($path) { $this->assertEquals($this->root_url . $path, $this->response->getHeaderLine('Location')); } }