File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env php
2
+ <?php
3
+
4
+ $ rootDir = realpath (__DIR__ .'/../../../.. ' );
5
+ $ vendorDir = realpath ($ rootDir .'/vendor ' );
6
+ $ phpUnitFile = $ rootDir .'/phpunit.xml.dist ' ;
7
+
8
+ if (!file_exists ($ phpUnitFile )) {
9
+ throw new \Exception (sprintf (
10
+ 'Cannot find phpunit.xml.dist file in "%s" ' ,
11
+ $ phpUnitFile
12
+ ));
13
+ }
14
+
15
+ $ xml = new \SimpleXMLElement (file_get_contents ($ phpUnitFile ));
16
+ $ kernelDir = $ xml ->php [0 ]->server [0 ]['value ' ];
17
+
18
+ $ kernelFile = $ kernelDir .'/AppKernel.php ' ;
19
+
20
+ if (!file_exists ($ kernelFile )) {
21
+ throw new \Exception (sprintf (
22
+ 'Cannot find kernel file "%s" ' ,
23
+ $ kernelFile
24
+ ));
25
+ }
26
+
27
+ require_once $ vendorDir .'/symfony-cmf/testing/bootstrap/bootstrap.php ' ;
28
+ require_once $ kernelFile ;
29
+
30
+ use Symfony \Bundle \FrameworkBundle \Console \Application ;
31
+ use Symfony \Component \Console \Input \ArgvInput ;
32
+
33
+ $ kernel = new AppKernel ('test ' , true );
34
+ $ application = new Application ($ kernel );
35
+ $ application ->run ();
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ DIR_NAME=` dirname $0 `
4
+ CONSOLE_DIR=$DIR_NAME " /.."
5
+
3
6
# composer install --dev
4
- php Tests/Functional/App/ console doctrine:phpcr:init:dbal
5
- php Tests/Functional/App/ console doctrine:phpcr:repository:init
7
+ php $CONSOLE_DIR " / console" doctrine:phpcr:init:dbal
8
+ php $CONSOLE_DIR " / console" doctrine:phpcr:repository:init
You can’t perform that action at this time.
0 commit comments