based on https://marketplace.visualstudio.com/items?itemName=damianbal.vs-phpclassgen
- remove generate namespace command
- remove vendor config
- add make test command
/
└── Modules
└── Calculation
├── Tests
└── Services
└── Taxes
├── WorkerTax.php
└── EmployeeTax.php <- create test for this file
- the test name will be the current file
className + Test
ex.EmployeeTaxTest
- tests are created in the nearest tests directory to the original file ex.
Modules/Calculation/Tests/...
, or if not the cmnd will keep traversing up until it finds a directory oftests
ex.root/tests
- the test file will be created with the original class hierarchy ex.
.../Tests/{TestType}/Services/Taxes/EmployeeTaxTest.php
- if file already exists it will be opened instead
- for the
Go To Test
codelens to show up, the class test file must beclassName + Test
ex.EmployeeTaxTest
- the search for the file is project wide, regardless of the folder hierarchy