Inheritance: extends PHPUnit_Framework_TestCase
Ejemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param ItemList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getItems(), ItemTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), ShippingAddressTest::getObject());
     $this->assertEquals($obj->getShippingMethod(), "TestSample");
     $this->assertEquals($obj->getShippingPhoneNumber(), "TestSample");
 }
 public static function createPayerInfo()
 {
     $payerInfo = new PayerInfo();
     $payerInfo->setEmail(self::$email);
     $payerInfo->setFirstName(self::$firstName);
     $payerInfo->setLastName(self::$lastName);
     $payerInfo->setPhone(self::$phone);
     $payerInfo->setPayerId(self::$payerId);
     $payerInfo->setShippingAddress(ShippingAddressTest::createAddress());
     return $payerInfo;
 }
Ejemplo n.º 3
0
 /**
  * @depends testSerializationDeserialization
  * @param PayerInfo $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEmail(), "TestSample");
     $this->assertEquals($obj->getExternalRememberMeId(), "TestSample");
     $this->assertEquals($obj->getBuyerAccountNumber(), "TestSample");
     $this->assertEquals($obj->getFirstName(), "TestSample");
     $this->assertEquals($obj->getLastName(), "TestSample");
     $this->assertEquals($obj->getPayerId(), "TestSample");
     $this->assertEquals($obj->getPhone(), "TestSample");
     $this->assertEquals($obj->getPhoneType(), "TestSample");
     $this->assertEquals($obj->getBirthDate(), "TestSample");
     $this->assertEquals($obj->getTaxId(), "TestSample");
     $this->assertEquals($obj->getTaxIdType(), "TestSample");
     $this->assertEquals($obj->getBillingAddress(), AddressTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), ShippingAddressTest::getObject());
 }
Ejemplo n.º 4
0
 public function testGetterSetters()
 {
     $items = $this->items->getItems();
     $this->assertEquals(ItemTest::createItem(), $items[0]);
     $this->assertEquals(ShippingAddressTest::getObject(), $this->items->getShippingAddress());
 }