Ejemplo n.º 1
0
 /**
  * Tests the asXml method.
  */
 public function testAsXml()
 {
     $instance = new JDatabaseExporterMysql();
     $result = $instance->asXml();
     $this->assertSame($instance, $result);
     $this->assertSame('xml', TestReflection::getValue($instance, 'asFormat'));
 }
 /**
  * Tests the asXml method.
  *
  * @return void
  *
  * @since  11.1
  */
 public function testAsXml()
 {
     $instance = new JDatabaseExporterMysql();
     $result = $instance->asXml();
     $this->assertThat($result, $this->identicalTo($instance), 'asXml must return an object to support chaining.');
     $this->assertThat(TestReflection::getValue($instance, 'asFormat'), $this->equalTo('xml'), 'The asXml method should set the protected asFormat property to "xml".');
 }