12/28/2023 0 Comments Phpunit phpstorm zeinert![]() ![]() If not already there, create at the root of your project.Set "Path to script" to /app/vendor/autoload.php.Choose your newly created interpreter and click OK to close the window.Click the top-left "+" to add a test framework.Open File | Settings | Languages & Frameworks | PHP | Test Frameworks.Add a local path mapping your project root to /app and click OK to confirm.Click on the directory icon of the "Path mappings" section.Click OK to close the "CLI Interpreters" window.Choose "Connect to an existing container" in the "Lifecycle" section.Click OK to close the "Configure Remote PHP Interpreter" window. ![]() Select "appserver" in the Service dropdown.Select all YAML files in C:\Users\\.lando\compose\.Click on the "Configuration files" folder icon.Click on the top-left "+" and create CLI Interpreter "From Docker, Vagrant, VM, WSL, Remote.".Click on the three dots on the "CLI Interpreter" line.Open File | Settings | Languages & Frameworks | PHP.Add one or more path mappings (in my case mapping /home/quentint to \\wsl$\Ubuntu\home\quentint was enough because my projects are stored in WSL's home directory).Choose "WSL" and your Linux distribution.Case b (theorical, because unfortunately I could not get it to work): If your Lando instance is in WSL:.Case a: If you have (and want to use) Docker for Windows: choose "Docker for Windows".Open File | Settings | Build, Execution, Deployment | Docker.This gist is a follow-up to this Lando issue, updated for Docker Composer and Windows (but might also help macOS and Linux users). Lando + PHPStorm/IntelliJ IDEA + PHPUnit Context ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |