File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1111 }
1212 ],
1313 "require" : {
14- "php" : " >=5.3 .0" ,
14+ "php" : " >=5.4 .0" ,
1515 "arachne/bootstrap" : " ~0.1" ,
1616 "codeception/codeception" : " ~2.0" ,
1717 "nette/bootstrap" : " ~2.2" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class RunTestInput extends ArgvInput
1717
1818 public function __construct (InputDefinition $ definition = NULL )
1919 {
20- $ parameters = array ( $ _SERVER ['argv ' ][0 ], 'run ' ) ;
20+ $ parameters = [ $ _SERVER ['argv ' ][0 ], 'run ' ] ;
2121
2222 if (isset ($ _SERVER ['argv ' ][1 ])) {
2323 $ filename = $ this ->normalizePath ($ _SERVER ['argv ' ][1 ]);
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class Nette extends Framework
3535 private $ path ;
3636
3737 // TODO: separate ArachneTools module (debugContent method)
38- public function _beforeSuite ($ settings = array () )
38+ public function _beforeSuite ($ settings = [] )
3939 {
4040 parent ::_beforeSuite ($ settings );
4141
@@ -53,11 +53,11 @@ public function _before(TestCase $test)
5353 $ this ->configurator = new Configurator ();
5454 $ this ->configurator ->setDebugMode (FALSE );
5555 $ this ->configurator ->setTempDirectory ($ tempDir );
56- $ this ->configurator ->addParameters (array (
57- 'container ' => array (
56+ $ this ->configurator ->addParameters ([
57+ 'container ' => [
5858 'class ' => $ this ->getContainerClass (),
59- ) ,
60- ) );
59+ ] ,
60+ ] );
6161 $ this ->configurator ->onCompile [] = function ($ config , Compiler $ compiler ) {
6262 $ compiler ->addExtension ('arachne.codeception ' , new CodeceptionExtension ());
6363 };
@@ -86,10 +86,10 @@ public function _before(TestCase $test)
8686 public function _after (TestCase $ test )
8787 {
8888 parent ::_after ($ test );
89- $ _SESSION = array () ;
90- $ _GET = array () ;
91- $ _POST = array () ;
92- $ _COOKIE = array () ;
89+ $ _SESSION = [] ;
90+ $ _GET = [] ;
91+ $ _POST = [] ;
92+ $ _COOKIE = [] ;
9393 }
9494
9595 /**
You can’t perform that action at this time.
0 commit comments