assertNotNull($obj); $this->assertNotNull($obj->getName()); $this->assertNotNull($obj->getValue()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param NameValuePair $obj */ public function testGetters($obj) { $this->assertEquals($obj->getName(), "TestSample"); $this->assertEquals($obj->getValue(), "TestSample"); } }