Ejemplo n.º 1
0
 /**
  * Gets an instance of a factory object to return on subsequent calls of getInstance.
  *
  * @param   JDatabaseFactory  $instance  A JDatabaseFactory object.
  *
  * @return  void
  *
  * @since   12.1
  */
 public static function setInstance(JDatabaseFactory $instance = null)
 {
     self::$_instance = $instance;
 }
Ejemplo n.º 2
0
 /**
  * Test for the JDatabaseFactory::getInstance method.
  *
  * @return  void
  *
  * @since   3.2
  */
 public function testGetInstance()
 {
     $this->assertThat(JDatabaseFactory::getInstance(), $this->isInstanceOf('JDatabaseFactory'), 'Tests that getInstance returns an instance of JDatabaseFactory.');
 }