| Conditions | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function testEditEncryptedFile() |
||
| 39 | { |
||
| 40 | // Setup a testing.env.enc file |
||
| 41 | $this->saveEncrypted(EnvSecurity::encrypt('hello world'), "testing"); |
||
| 42 | |||
| 43 | // Our test double will output the plaintext |
||
| 44 | $this->artisan('env:edit testing --append modified') |
||
| 45 | ->expectsOutput('Plaintext contents: hello world'); |
||
| 46 | |||
| 47 | // File will have "modified" appended and be re-encrypted |
||
| 48 | $this->assertEquals(EnvSecurity::encrypt('hello world modified'), $this->loadEncrypted('testing')); |
||
| 49 | } |
||
| 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