assertNotNull($obj); $this->assertNotNull($obj->getTotalCount()); $this->assertNotNull($obj->getInvoices()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param InvoiceSearchResponse $obj */ public function testGetters($obj) { $this->assertEquals($obj->getTotalCount(), 123); $this->assertEquals($obj->getInvoices(), InvoiceTest::getObject()); } }