/** * Tests the method getGenericTableName method. */ public function testGetGenericTableName() { $instance = new JDatabaseExporterMysql(); $instance->setDbo($this->dbo); $this->assertSame('#__test', TestReflection::invoke($instance, 'getGenericTableName', 'jos_test')); }
/** * Tests the setDbo method with the wrong type of class. * * @return void * * @since 11.1 */ public function testSetDboWithGoodInput() { $instance = new JDatabaseExporterMysql(); try { $result = $instance->setDbo($this->dbo); $this->assertThat($result, $this->identicalTo($instance), 'setDbo must return an object to support chaining.'); } catch (PHPUnit_Framework_Error $e) { // Unknown error has occurred. $this->fail($e->getMessage()); } }