Inheritance: extends PHPUnit_Framework_TestCase
Ejemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param Plan $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getPaymentDefinitions(), PaymentDefinitionTest::getObject());
     $this->assertEquals($obj->getTerms(), TermsTest::getObject());
     $this->assertEquals($obj->getMerchantPreferences(), MerchantPreferencesTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
Ejemplo n.º 2
0
 /**
  * @depends testSerializationDeserialization
  * @param Agreement $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getStartDate(), "TestSample");
     $this->assertEquals($obj->getPayer(), PayerTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getOverrideMerchantPreferences(), MerchantPreferencesTest::getObject());
     $this->assertEquals($obj->getOverrideChargeModels(), OverrideChargeModelTest::getObject());
     $this->assertEquals($obj->getPlan(), PlanTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }