示例#1
0
 /**
  * @return bool
  */
 public function isExecuted()
 {
     if (empty($this->executor)) {
         return false;
     }
     return $this->executor->isExecuted();
 }
示例#2
0
 /**
  * test that the query will still execute when logging is enabled
  * Testing of the Logger is done elsewhere
  */
 public function testLogging()
 {
     \Oracle\Support\Config::put('logging', true);
     require_once realpath(__DIR__ . '/../../bootstrap.php');
     // creates Logger and puts it in Config
     $executor = new Executor($this->statement);
     // logger gets attached on construction
     $executor->execute();
     $this->assertTrue($executor->isExecuted());
     \Oracle\Support\Config::put('logging', false);
 }