Integrated modules:
- Zend Framework 2
- Phpunit
- Doctrine & DoctrineORMModule & DoctrineModule
- Whoops & Zf2Whoops
- Assetic & AsseticBundle
- ZendDeveloperTools & BjyProfiler
- Sample unit tests for controllers and services.
- Start composer project
- Load inditel/zend-skeleton-application
Add this line to your apache config
SetEnv "APP_ENV" "development"
If you want to test staging, testing or production, update .htaccess file. Uncomment # SetEnv "APP_ENV" "development" Be careful not to commit with it!
-
Open project settings -> PHP -> PHPUnit. Set "Use custom loader" and choose vendor/autoload.php file.
-
Open Run/Debug Configurations
- Add new PHPUnit configuration
- Add name
- Select "Defined in the configuration file"
- Check "Use alternative configuration file"
- Choose module/YOUR_MODULE/test/phpunit.xml
- Check doctrine-gen.php
- Run doctrine-gen.php