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 11
11
}
12
12
],
13
13
"require" : {
14
- "php" : " >=5.3 .0" ,
14
+ "php" : " >=5.4 .0" ,
15
15
"arachne/bootstrap" : " ~0.1" ,
16
16
"codeception/codeception" : " ~2.0" ,
17
17
"nette/bootstrap" : " ~2.2" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class RunTestInput extends ArgvInput
17
17
18
18
public function __construct (InputDefinition $ definition = NULL )
19
19
{
20
- $ parameters = array ( $ _SERVER ['argv ' ][0 ], 'run ' ) ;
20
+ $ parameters = [ $ _SERVER ['argv ' ][0 ], 'run ' ] ;
21
21
22
22
if (isset ($ _SERVER ['argv ' ][1 ])) {
23
23
$ filename = $ this ->normalizePath ($ _SERVER ['argv ' ][1 ]);
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class Nette extends Framework
35
35
private $ path ;
36
36
37
37
// TODO: separate ArachneTools module (debugContent method)
38
- public function _beforeSuite ($ settings = array () )
38
+ public function _beforeSuite ($ settings = [] )
39
39
{
40
40
parent ::_beforeSuite ($ settings );
41
41
@@ -53,11 +53,11 @@ public function _before(TestCase $test)
53
53
$ this ->configurator = new Configurator ();
54
54
$ this ->configurator ->setDebugMode (FALSE );
55
55
$ this ->configurator ->setTempDirectory ($ tempDir );
56
- $ this ->configurator ->addParameters (array (
57
- 'container ' => array (
56
+ $ this ->configurator ->addParameters ([
57
+ 'container ' => [
58
58
'class ' => $ this ->getContainerClass (),
59
- ) ,
60
- ) );
59
+ ] ,
60
+ ] );
61
61
$ this ->configurator ->onCompile [] = function ($ config , Compiler $ compiler ) {
62
62
$ compiler ->addExtension ('arachne.codeception ' , new CodeceptionExtension ());
63
63
};
@@ -86,10 +86,10 @@ public function _before(TestCase $test)
86
86
public function _after (TestCase $ test )
87
87
{
88
88
parent ::_after ($ test );
89
- $ _SESSION = array () ;
90
- $ _GET = array () ;
91
- $ _POST = array () ;
92
- $ _COOKIE = array () ;
89
+ $ _SESSION = [] ;
90
+ $ _GET = [] ;
91
+ $ _POST = [] ;
92
+ $ _COOKIE = [] ;
93
93
}
94
94
95
95
/**
You can’t perform that action at this time.
0 commit comments