Inheritance: extends PHPUnit_Framework_TestCase
Exemplo n.º 1
0
 public function setup()
 {
     $this->amounts['partial'] = self::createAmount();
     $amount = self::createAmount();
     $amount->setDetails(DetailsTest::createAmountDetails());
     $this->amounts['full'] = $amount;
 }
Exemplo n.º 2
0
 /**
  * @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());
 }