Example #1
0
 /**
  * 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());
 }
Example #2
0
 /**
  * Clears the current mocker that was set by the setMocker method.
  *
  * @see setMocker
  */
 public static function clearMocker()
 {
     QueryType::clearMocker();
 }
Example #3
0
 /**
  * Sets up the native query builder.
  */
 public function __construct()
 {
     parent::__construct('NATIVE');
     $this->using = null;
 }
Example #4
0
 /**
  * Creates a DELETE query builder.
  */
 public function __construct()
 {
     parent::__construct('DELETE');
 }