상속: extends PHPUnit_Framework_TestCase
예제 #1
0
 public function setup()
 {
     $this->amounts['partial'] = self::createAmount();
     $amount = self::createAmount();
     $amount->setDetails(DetailsTest::createAmountDetails());
     $this->amounts['full'] = $amount;
 }
예제 #2
0
파일: AmountTest.php 프로젝트: Roc4rdho/app
 /**
  * @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());
 }