/** * @depends testSerializationDeserialization * @param WebHook $obj */ public function testGetters($obj) { $this->assertEquals($obj->getId(), "23beeafe-2f93-4d88-84d9-6cc9acf4d459"); $this->assertEquals($obj->getEvent(), "unconfirmed-tx"); $this->assertEquals($obj->getHash(), "2b17f5589528f97436b5d563635b4b27ca8980aa20c300abdc538f2a8bfa871b"); $this->assertEquals($obj->getWalletName(), "TestWalletName"); $this->assertEquals($obj->getToken(), "c0afcccdde5081d6429de37d16166ead"); $this->assertEquals($obj->getAddress(), "TestAddress"); $this->assertEquals($obj->getScript(), "TestScript"); $this->assertEquals($obj->getUrl(), "https://requestb.in/slmm49sl?uniqid=5537d0e823f80"); $this->assertEquals($obj->getCallbackErrors(), 0); // NOTICE: filter string does not contains \u0026 present in json string $this->assertEquals($obj->getFilter(), "event=unconfirmed-tx&hash=2b17f5589528f97436b5d563635b4b27ca8980aa20c300abdc538f2a8bfa871b"); }