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)
{