/**
  * Failing test for the JLoggerDatabase::connect method.
  *
  * @return  void
  *
  * @since   11.3
  *
  * @expectedException LogException
  */
 public function testConnect02()
 {
     // Setup the basic configuration.
     $config = array('db_driver' => 'failure', 'db_host' => 'foo', 'db_database' => 'bar', 'db_prefix' => 'blah_');
     $logger = new JLoggerDatabaseInspector($config);
     $logger->connect();
 }
 /**
  * Failing test for the JLoggerDatabase::connect method.
  *
  * @return  void
  *
  * @since   11.3
  *
  * @expectedException LogException
  */
 public function testConnect02()
 {
     // Load the config if available.
     @(include_once JPATH_TESTS . '/config.php');
     if (class_exists('JTestConfig')) {
         $config = new JTestConfig();
     }
     // Setup the basic configuration.
     $config = array('db_driver' => 'failure', 'db_host' => $config->host, 'db_user' => $config->user, 'db_pass' => $config->password, 'db_database' => $config->db, 'db_prefix' => $config->dbprefix);
     $logger = new JLoggerDatabaseInspector($config);
     $logger->connect();
 }
 /**
  * Test the JLoggerDatabase::connect method.
  */
 public function testConnect01()
 {
     // Load the config if available.
     @(include_once JPATH_TESTS . '/config.php');
     if (class_exists('JTestConfig')) {
         $config = new JTestConfig();
     }
     // Setup the basic configuration.
     $config = array('db_driver' => $config->dbtype, 'db_host' => $config->host, 'db_user' => $config->user, 'db_pass' => $config->password, 'db_database' => $config->db, 'db_prefix' => $config->dbprefix);
     $logger = new JLoggerDatabaseInspector($config);
     $logger->connect();
     $this->assertTrue($logger->dbo instanceof JDatabase, 'Line: ' . __LINE__);
 }