/** * Tests to ensure that the Query Mocker is used to execute a query. */ public function testExecuteMocker() { $mocker = new QueryMocker(); $mocker->setResult(true); QueryType::setMocker($mocker); $this->assertInstanceOf('\\Queryer\\Mock\\QueryMockerResult', $this->queryType->execute()); }
/** * Clears the current mocker that was set by the setMocker method. * * @see setMocker */ public static function clearMocker() { QueryType::clearMocker(); }
/** * Sets up the native query builder. */ public function __construct() { parent::__construct('NATIVE'); $this->using = null; }
/** * Creates a DELETE query builder. */ public function __construct() { parent::__construct('DELETE'); }