/** * @param bool $commit * @return bool */ public function execute($commit = Executor::COMMIT) { if ($this->isExecuted()) { return true; } $this->executor = new Executor($this); return $this->executor->execute($commit); }
/** * 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); }