File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
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 ' ;
7
5
8
6
use Symfony \Bundle \FrameworkBundle \Console \Application ;
9
7
use Symfony \Component \Console \Input \ArgvInput ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
- $ kernel = include __DIR__ .'/../bootstrap/kernel_bootstrap .php ' ;
4
+ require_once __DIR__ .'/../bootstrap/bootstrap .php ' ;
5
5
6
6
use Symfony \Bundle \FrameworkBundle \Console \Application ;
7
7
use Symfony \Component \Console \Input \ArrayInput ;
8
+ use Symfony \Component \Console \Input \ArgvInput ;
9
+
10
+ // fixme: hack
11
+ $ input = new ArgvInput ();
12
+ $ env = $ input ->getParameterOption (array ('--env ' , '-e ' ), 'phpcr ' );
8
13
9
14
$ input = new ArrayInput (array (
10
15
'server:run ' ,
11
16
'--router ' => CMF_TEST_ROOT_DIR .'/resources/web/router.php ' ,
12
17
'--docroot ' => CMF_TEST_ROOT_DIR .'/resources/web ' ,
13
18
));
14
19
20
+ $ kernel = include __DIR__ .'/../bootstrap/kernel_bootstrap.php ' ;
21
+
15
22
$ application = new Application ($ kernel );
16
23
$ application ->run ($ input );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ $ rootDir = realpath (__DIR__ .'/../../../.. ' );
3
4
$ phpUnitFile = $ rootDir .'/phpunit.xml.dist ' ;
4
5
5
6
if (!file_exists ($ phpUnitFile )) {
Original file line number Diff line number Diff line change 5
5
ini_set ('display_errors ' , 'On ' );
6
6
error_reporting (E_ALL );
7
7
8
+ require_once __DIR__ .'/../../bootstrap/bootstrap.php ' ;
9
+
10
+ // fixme: hack!!
11
+ $ env = 'phpcr ' ;
12
+
8
13
$ kernel = include __DIR__ .'/../../bootstrap/kernel_bootstrap.php ' ;
9
14
$ kernel ->loadClassCache ();
10
15
$ request = Request::createFromGlobals ();
You can’t perform that action at this time.
0 commit comments