Example #1
0
 /**
  * @covers Cilex\Store\Receipt::display
  */
 public function testDisplayWithDiscount()
 {
     $this->mockObject->expects($this->exactly(2))->method('getProperties')->will($this->returnValue(array('test' => 1.0)));
     $result = \Cilex\Store\Receipt::display($this->mockObject, 1.0, 1.0, 1.0);
     $this->assertEquals(9, count($result));
 }
Example #2
0
 /**
  * getReceipt - returns a receipt fro the transaction
  *
  * @return string
  */
 public function getReceipt()
 {
     return \Cilex\Store\Receipt::display($this->products, $this->getSubTotal(), $this->gettotalValue(), $this->getTotalDiscount());
 }