assertNotNull($obj); $this->assertNotNull($obj->getId()); $this->assertNotNull($obj->getName()); $this->assertNotNull($obj->getPercent()); $this->assertNotNull($obj->getAmount()); $this->assertEquals(self::getJson(), $obj->toJson()); return $obj; } /** * @depends testSerializationDeserialization * @param Tax $obj */ public function testGetters($obj) { $this->assertEquals($obj->getId(), "TestSample"); $this->assertEquals($obj->getName(), "TestSample"); $this->assertEquals($obj->getPercent(), "12.34"); $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); } /** * @depends testSerializationDeserialization * @param Tax $obj */ public function testDeprecatedGetters($obj) { } /** * @depends testSerializationDeserialization * @param Tax $obj */ public function testDeprecatedSetterNormalGetter($obj) { //Test All Deprecated Getters and Normal Getters $this->testDeprecatedGetters($obj); $this->testGetters($obj); } }