testcases updated

updated testcases to match new json schema
and updates with camel case function names
This commit is contained in:
Ganesh Hegde
2013-05-28 10:08:34 +05:30
parent 125a7b66f3
commit 50b09bdbde
22 changed files with 179 additions and 197 deletions

View File

@@ -24,14 +24,14 @@ class AmountTest extends \PHPUnit_Framework_TestCase {
$this->amounts['partial'] = self::createAmount();
$amount = self::createAmount();
$amount->setDetails(AmountDetailsTest::createAmountDetails());
$amount->setDetails(DetailsTest::createAmountDetails());
$this->amounts['full'] = $amount;
}
public function testGetterSetter() {
$this->assertEquals(self::$currency, $this->amounts['partial']->getCurrency());
$this->assertEquals(self::$total, $this->amounts['partial']->getTotal());
$this->assertEquals(AmountDetailsTest::$fee, $this->amounts['full']->getDetails()->getFee());
$this->assertEquals(DetailsTest::$fee, $this->amounts['full']->getDetails()->getFee());
}
public function testSerializeDeserialize() {