public function setup() { $this->amounts['partial'] = self::createAmount(); $amount = self::createAmount(); $amount->setDetails(DetailsTest::createAmountDetails()); $this->amounts['full'] = $amount; }
/** * @depends testSerializationDeserialization * @param Amount $obj */ public function testGetters($obj) { $this->assertEquals($obj->getCurrency(), "TestSample"); $this->assertEquals($obj->getTotal(), "12.34"); $this->assertEquals($obj->getDetails(), DetailsTest::getObject()); }