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