Пример #1
0
 /**
  * @return FullAddress
  */
 public function testGetFullAddress()
 {
     $request = $this->operation['response']['body'];
     $fullAddress = new FullAddress($request);
     $result = Address::getFullAddress($fullAddress->getAddress(), array(), $this->apiContext, $this->mockBlockCypherRestCall);
     $this->assertNotNull($result);
     $this->assertInstanceOf('\\BlockCypher\\Api\\FullAddress', $result);
     // Assert only immutable values.
     $this->assertEquals($fullAddress->getAddress(), $result->getAddress());
     $this->assertEquals($fullAddress->getTxUrl(), $result->getTxUrl());
     $this->assertEquals(count($fullAddress->getTxs()), count($result->getTxs()));
     $this->assertContainsOnlyInstancesOf('\\BlockCypher\\Api\\TX', $result->getTxs());
     return $result;
 }