PHP Classes

File: lib/merchant/billing/Expect.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Andreas Kollaros  >  Aktive Merchant  >  lib/merchant/billing/Expect.php  >  Download  
File: lib/merchant/billing/Expect.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aktive Merchant
Common interface to process payments with gateways
Author: By
Last change:
Date: 3 years ago
Size: 753 bytes


Class file image Download

 * Description of Gateway
 * This class allows modify the return value of ssl_get and ssl_post method of
 * a gateway.
 * Used for unit testing purpose only, when we want to test a gateway response
 * without actually make a request to payment server.
 * Usage:
 * $gateway->expects(<method>, <response_value> );
 * When we call $gateway->method will get the <response_value>
 * <method> can be ssl_post or ssl_get
 * @package Aktive Merchant
 * @author Andreas Kollaros
 * @license
class Merchant_Billing_Expect

$expects = array();

    public function
expects($method, $return_value)
$this->expects[$method] = $return_value;