Services_ExchangeRates
[ class tree: Services_ExchangeRates ] [ index: Services_ExchangeRates ] [ all elements ]

Source for file Mock.php

Documentation is available at Mock.php

  1. <?php
  2. class Services_ExchangeRates_Transport_Mock {
  3.     var $responses;
  4.  
  5.     function Services_ExchangeRates_Transport_Mock($responses = array()) {
  6.         $this->responses $responses;
  7.     }
  8.  
  9.     function fetch($url{
  10.         if (!empty($this->responses)) {
  11.             return array_shift($this->responses);
  12.         }
  13.  
  14.         return false;
  15.     
  16. }

Documentation generated on Mon, 11 Mar 2019 15:28:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.