Nikolay Oleynikov
8 years ago
committed by
Alexander Makarov
4 changed files with 50 additions and 0 deletions
@ -0,0 +1,25 @@
|
||||
<?php |
||||
|
||||
namespace yiiunit\framework\db; |
||||
|
||||
use yii\base\InvalidCallException; |
||||
use yii\db\Query; |
||||
|
||||
class UnqueryableQueryMock extends Query |
||||
{ |
||||
/** |
||||
* @inheritdoc |
||||
*/ |
||||
public function one($db = null) |
||||
{ |
||||
throw new InvalidCallException(); |
||||
} |
||||
|
||||
/** |
||||
* @inheritdoc |
||||
*/ |
||||
public function all($db = null) |
||||
{ |
||||
throw new InvalidCallException(); |
||||
} |
||||
} |
Loading…
Reference in new issue