You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
390 B
26 lines
390 B
8 years ago
|
<?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();
|
||
|
}
|
||
|
}
|