/** * @depends testSerializationDeserialization * @param HDWallet $obj */ public function testGetters($obj) { $this->assertEquals($obj->getToken(), "c0afcccdde5081d6429de37d16166ead"); $this->assertEquals($obj->getName(), "bob"); //$this->assertEquals($obj->getAddresses(), array("18VAyux27CiWQnmYumZeTKNcaw6opvKRLq", "1JcX75oraJEmzXXHpDjRctw3BX6qDmFM8e")); $this->assertEquals($obj->getHd(), true); $this->assertEquals($obj->getExtendedPublicKey(), 'xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8'); $this->assertEquals($obj->getSubchainIndexes(), array(1, 3)); }
/** * @depends testSerializationDeserialization * @param HDWallet $obj */ public function testGetters($obj) { $this->assertEquals($obj->getToken(), "c0afcccdde5081d6429de37d16166ead"); $this->assertEquals($obj->getName(), "bob"); $this->assertEquals($obj->getChains(), array(HDChainTest::getObject())); $this->assertEquals($obj->getHd(), true); $this->assertEquals($obj->getExtendedPublicKey(), 'xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8'); $this->assertEquals($obj->getSubchainIndexes(), array(1)); }