/**
	 * Tests the JDatabaseQuery::nullDate method for an expected exception.
	 *
	 * @return  void
	 *
	 * @covers             JDatabaseQuery::quote
	 * @expectedException  RuntimeException
	 * @since              11.3
	 */
	public function testQuoteException()
	{
		// Override the internal database for testing.
		$this->_instance->db = new stdClass;

		$this->_instance->quote('foo');
	}
Пример #2
0
 /**
  * Tests the JDatabaseQuery::nullDate method for an expected exception.
  *
  * @return  void
  *
  * @expectedException  RuntimeException
  * @since              11.3
  */
 public function testQuoteException()
 {
     // Override the internal database for testing.
     TestReflection::setValue($this->_instance, 'db', new stdClass());
     $this->_instance->quote('foo');
 }