Prefer that kind of assertion : ```$this->asserSame(404, $this->client->getResponse()->getStatusCode());```