If you wish to contribute to Code Generator, please be sure to read to the following resources:
- Coding Standards: PSR-0/1/2/4
- Git Guide: README-GIT.md
If you are working on new features, or refactoring an existing component, please create a proposal. You can do this in on the RFC's page, https://github.com/sandrokeil/CodeGenerator/wiki/RFCs.
To run tests:
-
Make sure you have a recent version of PHPUnit installed; 3.7.x minimally.
-
Be sure you are in the root directory
-
Execute PHPUnit
% phpunit
You can turn on conditional tests with the TestConfig.php file. To do so:
- Enter the
test/
subdirectory. - Copy
TestConfig.php.dist
file toTestConfig.php
- Edit
TestConfig.php
to enable any specific functionality you want to test, as well as to provide test values to utilize.