コード例 #1
0
 /**
  * @depends testSerializationDeserialization
  * @param PaymentForward $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "6908058c-b80d-466b-a4de-954ff2fad971");
     $this->assertEquals($obj->getToken(), "c0afcccdde5081d6429de37d16166ead");
     $this->assertEquals($obj->getDestination(), "15qx9ug952GWGTNn7Uiv6vode4RcGrRemh");
     $this->assertEquals($obj->getInputAddress(), "1E4FVAQAsWTWbzu4UWxmjpaq3v26QNZhy4");
     $this->assertEquals($obj->getProcessFeesAddress(), "1LWw6FdzNUcX8bnekMMZ7eofcGF7SXmbrL");
     $this->assertEquals($obj->getProcessFeesSatoshis(), 10000);
     $this->assertEquals($obj->getProcessFeesPercent(), 0.1);
     $this->assertEquals($obj->getCallbackUrl(), "http://requestb.in/rwp6jirw?uniqid=5582e3872f8b3");
     $this->assertEquals($obj->getEnableConfirmations(), true);
     $this->assertEquals($obj->getMiningFeesSatoshis(), 10000);
     $this->assertEquals($obj->getTransactions(), array("6336b42b5b80118d3b15c8fc0cf7fda2414bec4d90cbbbf6148ed58089ee1ad4"));
 }