File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed
Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4- $ rootDir = realpath (__DIR__ .'/../../../.. ' );
5- $ vendorDir = realpath ($ rootDir .'/vendor ' );
6- require_once $ vendorDir .'/symfony-cmf/testing/bootstrap/bootstrap.php ' ;
4+ require_once __DIR__ .'/../bootstrap/bootstrap.php ' ;
75
86use Symfony \Bundle \FrameworkBundle \Console \Application ;
97use Symfony \Component \Console \Input \ArgvInput ;
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4- $ kernel = include __DIR__ .'/../bootstrap/kernel_bootstrap .php ' ;
4+ require_once __DIR__ .'/../bootstrap/bootstrap .php ' ;
55
66use Symfony \Bundle \FrameworkBundle \Console \Application ;
77use Symfony \Component \Console \Input \ArrayInput ;
8+ use Symfony \Component \Console \Input \ArgvInput ;
9+
10+ $ input = new ArgvInput ();
11+ $ env = $ input ->getParameterOption (array ('--env ' , '-e ' ), 'phpcr ' );
812
913$ input = new ArrayInput (array (
1014 'server:run ' ,
1115 '--router ' => CMF_TEST_ROOT_DIR .'/resources/web/router.php ' ,
1216 '--docroot ' => CMF_TEST_ROOT_DIR .'/resources/web ' ,
1317));
1418
19+ $ kernel = include __DIR__ .'/../bootstrap/kernel_bootstrap.php ' ;
20+
1521$ application = new Application ($ kernel );
1622$ application ->run ($ input );
Original file line number Diff line number Diff line change 11<?php
22
3+ $ rootDir = realpath (__DIR__ .'/../../../.. ' );
34$ phpUnitFile = $ rootDir .'/phpunit.xml.dist ' ;
45
56if (!file_exists ($ phpUnitFile )) {
Original file line number Diff line number Diff line change 55ini_set ('display_errors ' , 'On ' );
66error_reporting (E_ALL );
77
8+ require_once __DIR__ .'/../../bootstrap/bootstrap.php ' ;
9+
10+ $ request = Request::createFromGlobals ();
11+ $ env = $ request ->query ->get ('env ' , 'phpcr ' );
12+ $ request ->query ->remove ('env ' );
13+
814$ kernel = include __DIR__ .'/../../bootstrap/kernel_bootstrap.php ' ;
915$ kernel ->loadClassCache ();
10- $ request = Request::createFromGlobals ();
1116$ response = $ kernel ->handle ($ request );
1217$ response ->send ();
1318$ kernel ->terminate ($ request , $ response );
You can’t perform that action at this time.
0 commit comments