| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function testDecryptMissingFile() |
||
| 25 | { |
||
| 26 | // Make sure no file is present |
||
| 27 | if(file_exists($this->getFilePathForEnvironment('testing'))) { |
||
| 28 | unlink($this->getFilePathForEnvironment('testing')); |
||
| 29 | } |
||
| 30 | |||
| 31 | // Our test double will output the plaintext |
||
| 32 | $this->artisan('env:decrypt testing') |
||
| 33 | ->expectsOutput('Unable to load encrypted .env file for environment [testing]'); |
||
| 34 | } |
||
| 50 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths