/** * 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; }
/** * 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.'); }