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