public function assertAction($actionName) { if (!method_exists($this->response, 'getActionName')) { throw new \Exception('getActionName not found, please use \\MartynBiz\\Slim3Controller\\Http\\Response in your app.'); } $this->assertEquals($actionName, $this->response->getActionName()); }