| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function create() |
||
| 32 | {
|
||
| 33 | |||
| 34 | if(!file_exists(app()->path()->tests())){
|
||
| 35 | $this->directory['test'] = app()->path()->tests(); |
||
| 36 | $this->file->makeDirectory($this); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->argument['testPath'] = app()->namespace()->tests(); |
||
| 40 | $this->argument['testNamespace'] = ucfirst($this->argument['test']); |
||
| 41 | $this->argument['projectName'] = strtolower($this->projectName()); |
||
| 42 | |||
| 43 | $this->touch['test/test']= app()->path()->tests().'/'.ucfirst($this->argument['test']).'.php'; |
||
| 44 | |||
| 45 | |||
| 46 | $this->file->touch($this); |
||
| 47 | |||
| 48 | echo $this->classical(' > Test file called as "'.$this->argument['test'].'" has been successfully created in the '.app()->namespace()->tests().'');
|
||
| 49 | } |
||
| 50 | } |