Beispiel #1
0
 /**
  * Method to test getDataClass().
  *
  * @return void
  *
  * @covers Windwalker\DataMapper\AbstractDataMapper::getDataClass
  */
 public function testGetAndSetDataClass()
 {
     $this->instance->setDataClass('stdClass');
     $this->assertEquals('stdClass', $this->instance->getDataClass());
     // If we use DataSet, all stdClass will be auto convert to Data
     $this->assertInstanceOf('Windwalker\\Data\\Data', $this->instance->findOne());
     $this->instance->setDatasetClass('ArrayObject');
     $this->assertInstanceOf('stdClass', $this->instance->findOne());
 }