/** * Test nameOfQuery method. */ public function testNameOfQuery() { $this->given($exception = NotFoundException::nameOfQuery('bar'))->then()->variable($exception->getPrevious())->isNull(); }
/** * {@inheritdoc} */ protected function notFoundException($query) { return NotFoundException::nameOfQuery($query); }