Diff
Property changes:
Name: svk:merge
- d6e91ea2-e33a-0410-98df-1d493bd67c58:/:199
+ d6e91ea2-e33a-0410-98df-1d493bd67c58:/:200
Modified: branches/zend/specs/ContextZendSpec.php (199 => 200)
--- branches/zend/specs/ContextZendSpec.php 2008-01-15 21:34:14 UTC (rev 199)
+++ branches/zend/specs/ContextZendSpec.php 2008-01-15 21:38:13 UTC (rev 200)
@@ -36,7 +36,7 @@
public function itShouldAllowSettingSetupCallbackFunction()
{
- PHPSpec_Context_Zend::setFrontControllerSetupCallback('Bootstrap','prepare');
+ PHPSpec_Context_Zend::setFrontControllerSetupCallback(array('Bootstrap','prepare'));
$context = new DescribeFooController;
$context->beforeEach();
$this->spec(
Modified: branches/zend/src/PHPSpec/Context/Zend.php (199 => 200)
--- branches/zend/src/PHPSpec/Context/Zend.php 2008-01-15 21:34:14 UTC (rev 199)
+++ branches/zend/src/PHPSpec/Context/Zend.php 2008-01-15 21:38:13 UTC (rev 200)
@@ -75,13 +75,9 @@
$this->_frontController = Zend_Controller_Front::getInstance();
}
- public static function setFrontControllerSetupCallback($func, $staticMethod = null)
+ public static function setFrontControllerSetupCallback($callback)
{
- if ($staticMethod !== null) {
- self::$_frontControllerSetupCallback = array($func, $staticMethod);
- return;
- }
- self::$_frontControllerSetupCallback = $func;
+ self::$_frontControllerSetupCallback = $callback;
}
public static function clearFrontControllerSetupCallback()