public function testHistoryWithNotfound() { $Customer = $this->createCustomer(); $this->logIn($Customer); $client = $this->client; try { $crawler = $client->request('GET', $this->app->path('mypage_history', array('id' => 999999999))); $this->fail(); } catch (NotFoundHttpException $e) { $this->actual = $e->getMessage(); $this->expected = ''; } $this->verify(); }