Test Setup Failed
Push — master ( 78b07d...0cc29f )
by Php Easy Api
04:54 queued 48s
created
src/resta/Console/Source/Test/Test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $type = (isset($this->argument['type'])) ? $this->argument['type'] : 'Unit';
38 38
 
39
-        if(!file_exists(app()->path()->tests())){
39
+        if (!file_exists(app()->path()->tests())) {
40 40
             $this->directory['test'] = app()->path()->tests();
41 41
             $this->file->makeDirectory($this);
42 42
         }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $dirWithType = app()->path()->tests().'/'.$type;
45 45
 
46 46
 
47
-        if(!file_exists($dirWithType)){
47
+        if (!file_exists($dirWithType)) {
48 48
             $this->directory['testType'] = $dirWithType;
49 49
             $this->file->makeDirectory($this);
50 50
         }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $this->argument['testNamespace'] = ucfirst($this->argument['test']).'Test';
55 55
         $this->argument['projectName'] = strtolower($this->projectName());
56 56
 
57
-        $this->touch['test/test']= $dirWithType.'/'.$this->argument['testNamespace'].'.php';
57
+        $this->touch['test/test'] = $dirWithType.'/'.$this->argument['testNamespace'].'.php';
58 58
 
59 59
 
60 60
         $this->file->touch($this);
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
 
74 74
         $array = $xml->toArray();
75 75
 
76
-        $new = (new PhpUnitManager($array))->add(strtolower($this->projectName()),'directory',
77
-            str_replace(root.''.DIRECTORY_SEPARATOR,"",app()->path()->tests()));
76
+        $new = (new PhpUnitManager($array))->add(strtolower($this->projectName()), 'directory',
77
+            str_replace(root.''.DIRECTORY_SEPARATOR, "", app()->path()->tests()));
78 78
 
79 79
         $newDataXml = $xml->toXml($new);
80 80
 
81
-        app()->get('fileSystem')->writeFile($phpunit,$newDataXml);
81
+        app()->get('fileSystem')->writeFile($phpunit, $newDataXml);
82 82
 
83 83
         echo $this->classical(' > phpunit.xml file has been updated');
84 84
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function run()
90 90
     {
91
-        $process = new Process(['vendor'.DIRECTORY_SEPARATOR.'bin'.DIRECTORY_SEPARATOR.'phpunit','--group',strtolower($this->projectName())]);
91
+        $process = new Process(['vendor'.DIRECTORY_SEPARATOR.'bin'.DIRECTORY_SEPARATOR.'phpunit', '--group', strtolower($this->projectName())]);
92 92
         $process->setTty(true);
93 93
 
94 94
         try {
Please login to merge, or discard this patch.
src/resta/Console/Source/Project/Project.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * @var $type
16 16
      */
17
-    public $type='project';
17
+    public $type = 'project';
18 18
 
19 19
     /**
20 20
      * @var array
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * @var $commandRule
33 33
      */
34
-    public $commandRule=[];
34
+    public $commandRule = [];
35 35
 
36 36
     /**
37 37
      * @method create
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
         $this->directory['projectDir']          = $this->projectPath();
46 46
         $this->argument['exceptionNamespace']   = app()->namespace()->exception();
47 47
         $this->argument['resourcePath']         = app()->path()->appResourche();
48
-        $this->argument['testNamespace']             = app()->namespace()->tests();
48
+        $this->argument['testNamespace'] = app()->namespace()->tests();
49 49
 
50
-        $recursiveDefaultDirectory = explode("\\",$this->argument['project']);
50
+        $recursiveDefaultDirectory = explode("\\", $this->argument['project']);
51 51
         $this->argument['applicationName'] = pos($recursiveDefaultDirectory);
52 52
         $recursiveDefaultDirectory[] = 'V1';
53 53
         $recursiveDefaultDirectoryList = [];
54 54
 
55
-        foreach (array_slice($recursiveDefaultDirectory,1) as $defaultDirectory){
55
+        foreach (array_slice($recursiveDefaultDirectory, 1) as $defaultDirectory) {
56 56
 
57
-            $recursiveDefaultDirectoryList[]=$defaultDirectory;
58
-            $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/",$recursiveDefaultDirectoryList);
57
+            $recursiveDefaultDirectoryList[] = $defaultDirectory;
58
+            $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/", $recursiveDefaultDirectoryList);
59 59
         }
60 60
 
61 61
         //$this->directory['optionalDir'] = $this->optional();
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         //$this->directory['sourceDir']               = $this->sourceDir();
82 82
         //$this->directory['sourceSupportDir']        = $this->sourceSupportDir();
83 83
         //$this->directory['sourceSupportTraitDir']   = $this->sourceSupportDir().'/Traits';
84
-        $this->directory['exceptionDir']            = app()->path()->exception();
84
+        $this->directory['exceptionDir'] = app()->path()->exception();
85 85
 
86 86
         //set project directory
87 87
         $this->file->makeDirectory($this);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $this->touch['kernel/app']                  = $this->provider().'/AppServiceProvider.php';
96 96
         $this->touch['kernel/worker']               = $this->provider().'/WorkerServiceProvider.php';
97 97
         $this->touch['kernel/route']                = $this->provider().'/RouteServiceProvider.php';
98
-        $this->touch['test/testcase']              = $this->test().'/TestCase.php';
98
+        $this->touch['test/testcase'] = $this->test().'/TestCase.php';
99 99
         $this->touch['kernel/consoleevent']         = $this->provider().'/ConsoleEventServiceProvider.php';
100 100
         $this->touch['middleware/authenticate']     = $this->middleware().'/Authenticate.php';
101 101
         $this->touch['middleware/ratelimit']        = $this->middleware().'/RateLimit.php';
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $this->touch['app/gitignore']               = $this->projectPath().'/.gitignore';
135 135
         $this->touch['app/composer']                = $this->projectPath().'/composer.json';
136 136
         $this->touch['test/index']                  = $this->storage().'/index.html';
137
-        $this->touch['exception/authenticate']      = $this->directory['exceptionDir'] .'/AuthenticateException.php';
137
+        $this->touch['exception/authenticate']      = $this->directory['exceptionDir'].'/AuthenticateException.php';
138 138
 
139 139
         //set project touch
140 140
         $this->file->touch($this);
Please login to merge, or discard this patch.