コード例 #1
0
 /**
  * Test nameOfQuery method.
  */
 public function testNameOfQuery()
 {
     $this->given($exception = NotFoundException::nameOfQuery('bar'))->then()->variable($exception->getPrevious())->isNull();
 }
コード例 #2
0
ファイル: ChainResolver.php プロジェクト: cubiche/cubiche
 /**
  * {@inheritdoc}
  */
 protected function notFoundException($query)
 {
     return NotFoundException::nameOfQuery($query);
 }