public function testGetActionException() { try { $this->request->getAction(); } catch (RequestException $exception) { $this->assertSame('id can not be empty for this request', $exception->getMessage()); return; } $this->fail(); }