assertNotNull($obj); $this->assertNotNull($obj->getAmount()); $this->assertNotNull($obj->getDescription()); $this->assertNotNull($obj->getRefundSource()); $this->assertNotNull($obj->getReason()); $this->assertNotNull($obj->getInvoiceNumber()); $this->assertNotNull($obj->getRefundAdvice()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param RefundRequest $obj */ public function testGetters($obj) { $this->assertEquals($obj->getAmount(), AmountTest::getObject()); $this->assertEquals($obj->getDescription(), "TestSample"); $this->assertEquals($obj->getRefundSource(), "TestSample"); $this->assertEquals($obj->getReason(), "TestSample"); $this->assertEquals($obj->getInvoiceNumber(), "TestSample"); $this->assertEquals($obj->getRefundAdvice(), true); } }