Skip to content

ctf0/vscode-php-class-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Php Class Generator

based on https://marketplace.visualstudio.com/items?itemName=damianbal.vs-phpclassgen

  • remove generate namespace command
  • remove vendor config
  • add make test command

Test File Creation

/
└── Modules
    └── Calculation
        ├── Tests
        └── Services
            └── Taxes
                ├── WorkerTax.php
                └── EmployeeTax.php <- create test for this file
  1. the test name will be the current file className + Test ex.EmployeeTaxTest
  2. 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 of tests ex.root/tests
  3. the test file will be created with the original class hierarchy ex..../Tests/{TestType}/Services/Taxes/EmployeeTaxTest.php
  4. if file already exists it will be opened instead
  5. for the Go To Test codelens to show up, the class test file must be className + Test ex.EmployeeTaxTest
    • the search for the file is project wide, regardless of the folder hierarchy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published