[209] r419@phpspec (orig r209): padraic.brady | 2008-02-03 06:07:38 -0700

0 views
Skip to first unread message

nor...@domain51.com

unread,
Feb 3, 2008, 8:08:12 AM2/3/08
to phpspec...@googlegroups.com
Revision
209
Author
phpspec
Date
2008-02-03 06:08:12 -0700 (Sun, 03 Feb 2008)

Log Message

 r419@phpspec (orig r209):  padraic.brady | 2008-02-03 06:07:38 -0700
 * Adding Zend_Di::replaceClass proxy method on PHPSpec_Context_Zend

Modified Paths

Property Changed

Diff

Property changes:


Name: svk:merge
   - d6e91ea2-e33a-0410-98df-1d493bd67c58:/:208
   + d6e91ea2-e33a-0410-98df-1d493bd67c58:/:209

Modified: trunk/src/PHPSpec/Context/Zend.php (208 => 209)


--- trunk/src/PHPSpec/Context/Zend.php	2008-02-03 00:48:21 UTC (rev 208)
+++ trunk/src/PHPSpec/Context/Zend.php	2008-02-03 13:08:12 UTC (rev 209)
@@ -22,6 +22,8 @@
 
 require_once 'Zend/Controller/Request/Http.php';
 
+require_once 'Zend/Di.php';
+
 /**
  * @category   PHPSpec
  * @package    PHPSpec
@@ -163,6 +165,13 @@
         }
         return $this->_response;
     }
+    
+    public function replaceClass()
+    {
+        $args = func_get_args();
+        $method = new ReflectionMethod('Zend_Di', 'replaceClass');
+        $method->invokeArgs(null, $args);
+    }
 
     public function setController($controllerName)
     {
Reply all
Reply to author
Forward
0 new messages