/**
  * Tests the from method with bad input.
  *
  * @expectedException Exception
  */
 public function testFromWithBadInput()
 {
     $instance = new JDatabaseExporterMysql();
     $instance->from(new stdClass());
 }
 /**
  * Tests the from method with expected good inputs.
  *
  * @return void
  *
  * @since  11.1
  */
 public function testFromWithGoodInput()
 {
     $instance = new JDatabaseExporterMysql();
     try {
         $result = $instance->from('jos_foobar');
         $this->assertThat($result, $this->identicalTo($instance), 'from must return an object to support chaining.');
         $this->assertThat(TestReflection::getValue($instance, 'from'), $this->equalTo(array('jos_foobar')), 'The from method should convert a string input to an array.');
     } catch (Exception $e) {
         $this->fail('From method should not throw exception with good input: ' . $e->getMessage());
     }
 }