Lens

settings.ini

Lens will create this settings file for you when you first run Lens.

Here’s an example:

settings.ini
src = '../src'
autoload = 'autoload.php'

src

The path to your source-code directory, relative to the Lens directory (the one that contains this settings file).

Set this to null if you’d like Lens to find your source-code directory automatically. Lens will find your source-code directory automatically if you name it “src” and put it in your project root. If you’d like to use a different path, then set this value to your custom source-code directory path.

This source-code directory path is important for the code-coverage report. Lens will show code coverage only for the files that are in your source-code directory. Lens uses this path to suppress irrelevant coverage information about your third-party dependencies.

autoload

The path to your “autoload.php” file, relative to the Lens directory (the one that contains this settings file).

Set this to null if you’d like Lens to find your autoload file automatically. Lens will find your autoload file automatically if you’re using Composer, or if you have an autoload file named “autoload.php” in your Lens directory. If you’d like to use a different autoload path, then set this value to your custom autoload file path (relative to the Lens directory).

Lens uses your autoload file not only to run your unit tests, but also to generate the code coverage report.