/** * Tests the setDbo method with the wrong type of class. * * @return void * * @since 11.1 */ public function testSetDboWithGoodInput() { $instance = new JDatabaseExporterMysqli; 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() ); } }
/** * Tests the setDbo method with the wrong type of class. */ public function testSetDboWithGoodInput() { $instance = new JDatabaseExporterMysqli(); $result = $instance->setDbo($this->dbo); $this->assertSame($instance, $result, 'setDbo must return an object to support chaining.'); }