Inheritance: extends PHPUnit_Framework_TestCase
Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Template $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getTemplateId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDefault(), true);
     $this->assertEquals($obj->getTemplateData(), TemplateDataTest::getObject());
     $this->assertEquals($obj->getSettings(), TemplateSettingsTest::getObject());
     $this->assertEquals($obj->getUnitOfMeasure(), "TestSample");
     $this->assertEquals($obj->getCustom(), true);
 }