public function testEmailParameterMatchesEmailFormat() { $billing = new BillingInformation($this->getCustomer(), $this->getAddress(), '*****@*****.**', '192.168.0.1'); $this->assertEquals('*****@*****.**', $billing->getEmail()); }
/** * Adds the value of billing information to the body * * @param \Namshi\Innovate\Payment\BillingInformation $card */ protected function addBilling(BillingInformation $card) { $this->xmlBody['billing'] = $card->toArray(); }