setCreateTime(self::$createTime); $refund->setAmount(AmountTest::createAmount()); $refund->setCaptureId(self::$captureId); $refund->setId(self::$id); $refund->setLinks(array(LinksTest::getObject())); $refund->setParentPayment(self::$parentPayment); return $refund; } public function setup() { $this->refund = self::createRefund(); } public function testGetterSetter() { $this->assertEquals(self::$captureId, $this->refund->getCaptureId()); $this->assertEquals(self::$createTime, $this->refund->getCreateTime()); $this->assertEquals(self::$id, $this->refund->getId()); $this->assertEquals(self::$parentPayment, $this->refund->getParentPayment()); $this->assertEquals(AmountTest::$currency, $this->refund->getAmount()->getCurrency()); $links = $this->refund->getLinks(); } public function testSerializeDeserialize() { $r1 = $this->refund; $r2 = new Refund(); $r2->fromJson($r1->toJson()); $this->assertEquals($r1, $r2); } public function testOperations() { } }