Author: heristop
Date: 2010-02-04 09:05:28 +0100 (Thu, 04 Feb 2010)
New Revision: 27542
Modified:
plugins/sfXssSafePlugin/trunk/test/unit/XssSafeTest.php
Log:
[[wiki:sfXssSafePlugin]] changed link towards bootstrap for unit tests
Modified: plugins/sfXssSafePlugin/trunk/test/unit/XssSafeTest.php
===================================================================
--- plugins/sfXssSafePlugin/trunk/test/unit/XssSafeTest.php 2010-02-04
07:29:34 UTC (rev 27541)
+++ plugins/sfXssSafePlugin/trunk/test/unit/XssSafeTest.php 2010-02-04
08:05:28 UTC (rev 27542)
@@ -5,18 +5,10 @@
* @author heristop
*/
-define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/../../../../'));
-define('SF_APP', 'frontend');
-define('SF_ENVIRONMENT', 'dev');
-define('SF_DEBUG', true);
+require_once dirname(__FILE__).'/../../../../test/bootstrap/unit.php';
-require_once SF_ROOT_DIR.'/config/ProjectConfiguration.class.php';
-$configuration = ProjectConfiguration::getApplicationConfiguration(SF_APP,
SF_ENVIRONMENT, SF_DEBUG);
-sfContext::createInstance($configuration);
-echo sprintf("Bootstrapping application \033[32m%s\033[0m in \033[32m%s\033[0m
environment\n\n", SF_APP, SF_ENVIRONMENT);
+sfConfig::set('sf_environment', 'test');
-require_once SF_ROOT_DIR.'/lib/symfony/vendor/lime/lime.php';
-
// add filters to the default configuration
$definitions = array(
'Attr' =>
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.