public
Description: My mirror of phpspec
Homepage: http://www.phpspec.org/
Clone URL: git://github.com/tedkulp/phpspec.git
* Adding Zend_Di::replaceClass proxy method on PHPSpec_Context_Zend

git-svn-id: http://phpspec.googlecode.com/svn/trunk@209 
d6e91ea2-e33a-0410-98df-1d493bd67c58
padraic.brady (author)
Sun Feb 03 05:07:38 -0800 2008
commit  4399f734523dd95c6989541557947fa71e9b4116
tree    9d08ee4b8a92e30acbb4c859705ea7dd918166a2
parent  a374adaedfb185a3305ece9a9099d75e9b21614c
...
22
23
24
 
 
25
26
27
...
163
164
165
 
 
 
 
 
 
 
166
167
168
...
22
23
24
25
26
27
28
29
...
165
166
167
168
169
170
171
172
173
174
175
176
177
0
@@ -22,6 +22,8 @@ require_once 'Zend/Controller/Front.php';
0
 
0
 require_once 'Zend/Controller/Request/Http.php';
0
 
0
+require_once 'Zend/Di.php';
0
+
0
 /**
0
  * @category PHPSpec
0
  * @package PHPSpec
0
@@ -163,6 +165,13 @@ class PHPSpec_Context_Zend extends PHPSpec_Context
0
         }
0
         return $this->_response;
0
     }
0
+
0
+ public function replaceClass()
0
+ {
0
+ $args = func_get_args();
0
+ $method = new ReflectionMethod('Zend_Di', 'replaceClass');
0
+ $method->invokeArgs(null, $args);
0
+ }
0
 
0
     public function setController($controllerName)
0
     {

Comments

    No one has commented yet.