assertNotNull($obj); $this->assertNotNull($obj->getPaymentCardId()); $this->assertNotNull($obj->getExternalCustomerId()); $this->assertNotNull($obj->getLast4()); $this->assertNotNull($obj->getType()); $this->assertNotNull($obj->getExpireMonth()); $this->assertNotNull($obj->getExpireYear()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param PaymentCardToken $obj */ public function testGetters($obj) { $this->assertEquals($obj->getPaymentCardId(), "TestSample"); $this->assertEquals($obj->getExternalCustomerId(), "TestSample"); $this->assertEquals($obj->getLast4(), "TestSample"); $this->assertEquals($obj->getType(), "TestSample"); $this->assertEquals($obj->getExpireMonth(), 123); $this->assertEquals($obj->getExpireYear(), 123); } }