protected function adapterIsSet() { try { return parent::adapterIsSet(); } catch (adapter\exceptions\logic $exception) { throw new mock\exceptions\logic('Mock is undefined'); } }