コード例 #1
0
ファイル: QueryTest.php プロジェクト: jbanety/database
 /**
  * Tests the \Joomla\Database\DatabaseQuery::escape method for an expected exception.
  *
  * @return  void
  *
  * @covers             \Joomla\Database\DatabaseQuery::escape
  * @expectedException  \RuntimeException
  * @since           1.0
  */
 public function testEscapeException()
 {
     // Override the internal database for testing.
     TestHelper::setValue($this->instance, 'db', new \stdClass());
     $this->instance->escape('foo');
 }