assertNotNull($obj); $this->assertNotNull($obj->getTransactionId()); $this->assertNotNull($obj->getStatus()); $this->assertNotNull($obj->getTransactionType()); $this->assertNotNull($obj->getAmount()); $this->assertNotNull($obj->getFeeAmount()); $this->assertNotNull($obj->getNetAmount()); $this->assertNotNull($obj->getPayerEmail()); $this->assertNotNull($obj->getPayerName()); $this->assertNotNull($obj->getTimeUpdated()); $this->assertNotNull($obj->getTimeZone()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param AgreementTransaction $obj */ public function testGetters($obj) { $this->assertEquals($obj->getTransactionId(), "TestSample"); $this->assertEquals($obj->getStatus(), "TestSample"); $this->assertEquals($obj->getTransactionType(), "TestSample"); $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); $this->assertEquals($obj->getFeeAmount(), CurrencyTest::getObject()); $this->assertEquals($obj->getNetAmount(), CurrencyTest::getObject()); $this->assertEquals($obj->getPayerEmail(), "TestSample"); $this->assertEquals($obj->getPayerName(), "TestSample"); $this->assertEquals($obj->getTimeUpdated(), "TestSample"); $this->assertEquals($obj->getTimeZone(), "TestSample"); } }