Development

Changeset 27783

You must first sign up to be able to contribute.

Changeset 27783

Show
Ignore:
Timestamp:
02/09/10 14:04:51 (1 month ago)
Author:
maksim_ka
Message:

[sfPhpunitPlugin][sf1.2] update amftest case. fix problem with using sabreamf multiple times

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPhpunitPlugin/branches/1.2/lib/testcase/amf/sfPhpunitAmfService.php

    r27207 r27783  
    11<?php 
    2  
    3 if (!class_exists('SabreAMF_Client', true)) require_once 'SabreAMF/Client.php'; 
    42 
    53/** 
     
    1614    $_service = false; 
    1715  
    18   public function __construct($service, SabreAMF_Client $client) 
     16  public function __construct($service, sfPhpunitAmfClient $client) 
    1917  { 
    2018    $this->setService($service); 
  • plugins/sfPhpunitPlugin/branches/1.2/lib/testcase/sfBasePhpunitAmfTestCase.class.php

    r27207 r27783  
    112112   * @return SabreAMF_Client 
    113113   */ 
    114   protected function _getClient(
     114  protected function _getClient($endpoint = null
    115115  { 
    116     return new SabreAMF_Client($this->_getAmfEndPoint()); 
     116    return new sfPhpunitAmfClient($endpoint); 
    117117  } 
    118118   
     
    124124   * @return sfPhpunitAmfService 
    125125   */ 
    126   protected function service(SabreAMF_Client $client = null) 
     126  protected function service(sfPhpunitAmfClient $client = null) 
    127127  { 
    128128    if (false === $this->_amfservice) { 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.