assertNotNull($obj); $this->assertNotNull($obj->getType()); $this->assertNotNull($obj->getTransactionId()); $this->assertNotNull($obj->getTransactionType()); $this->assertNotNull($obj->getDate()); $this->assertNotNull($obj->getMethod()); $this->assertNotNull($obj->getNote()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param PaymentDetail $obj */ public function testGetters($obj) { $this->assertEquals($obj->getType(), "TestSample"); $this->assertEquals($obj->getTransactionId(), "TestSample"); $this->assertEquals($obj->getTransactionType(), "TestSample"); $this->assertEquals($obj->getDate(), "TestSample"); $this->assertEquals($obj->getMethod(), "TestSample"); $this->assertEquals($obj->getNote(), "TestSample"); } }