Пример #1
0
	/**
	 * Tests the JDatabase::getLog method.
	 *
	 * @return  void
	 *
	 * @since   11.4
	 */
	public function testGetLog()
	{
		TestReflection::setValue($this->db, 'log', 'foo');

		$this->assertThat(
			$this->db->getLog(),
			$this->equalTo('foo')
		);
	}
Пример #2
0
 /**
  * Get the database driver SQL statement log.
  *
  * @return  array  SQL statements executed by the database driver.
  */
 public function getLog()
 {
     return $this->_db->getLog();
 }