client = $this->createClient(); } /** * Default route test */ public function testRouteSlash() { $crawler = $this->client->request('GET', '/'); $response = $this->client->getResponse(); /* @var $response \Symfony\Component\HttpFoundation\Response */ $this->assertEquals(200, $response->getStatusCode()); $this->assertEquals('UTF-8', $response->getCharset()); } }