Login   Register  
PHP Classes
elePHPant
Icontem

File: lib/merchant/billing/Expect.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2 years ago
Size: 753 bytes
 

Contents

Class file image Download
<?php

/**
 * 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 http://www.opensource.org/licenses/mit-license.php
 */
class Merchant_Billing_Expect
{

    protected 
$expects = array();

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

}

?>