Permalink
Browse files

enabled Zombie.js for acceptance testing

  • Loading branch information...
1 parent c2d03e9 commit 441f75d7cbfbe97523efc0bd43b93fdf72b0ff87 @havvg committed Sep 9, 2011
Showing with 22 additions and 0 deletions.
  1. +2 −0 app/config/config_test.yml
  2. +20 −0 web/app_test.php
@@ -15,3 +15,5 @@ swiftmailer:
mink:
base_url: http://your-app.dev/app_test.php
+ default_session: symfony
+ zombie: ~
View
@@ -0,0 +1,20 @@
+<?php
+
+// this check prevents access to debug front controllers that are deployed by accident to production servers.
+// feel free to remove this, extend it, or make something more sophisticated.
+if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
+ '127.0.0.1',
+ '::1',
+))) {
+ header('HTTP/1.0 403 Forbidden');
+ exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
+}
+
+require_once __DIR__.'/../app/bootstrap.php.cache';
+require_once __DIR__.'/../app/AppKernel.php';
+
+use Symfony\Component\HttpFoundation\Request;
+
+$kernel = new AppKernel('test', true);
+$kernel->loadClassCache();
+$kernel->handle(Request::createFromGlobals())->send();

0 comments on commit 441f75d

Please sign in to comment.