library zend-skeleton-application
Inditel skeleton Application for ZF2
inditel/zend-skeleton-application
Inditel skeleton Application for ZF2
- Friday, June 21, 2013
- by inditel
- Repository
- 1 Watchers
- 1 Stars
- 11 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Integrated modules:
* Zend Framework 2
* Phpunit
* Doctrine & DoctrineORMModule & DoctrineModule
* Whoops & Zf2Whoops
* Assetic & AsseticBundle
* ZendDeveloperTools & BjyProfiler
* Sample unit tests for controllers and services., (*1)
Installing project
- Start composer project
- Load inditel/zend-skeleton-application
Setting up local development environment
Add this line to your apache config, (*2)
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!, (*3)
To start unit testing (PHPStorm)
-
Open project settings -> PHP -> PHPUnit.
Set "Use custom loader" and choose vendor/autoload.php file., (*4)
-
Open Run/Debug Configurations, (*5)
- Add new PHPUnit configuration
- Add name
- Select "Defined in the configuration file"
- Check "Use alternative configuration file"
- Choose module/YOUR_MODULE/test/phpunit.xml
Generating doctrine entities
- Check doctrine-gen.php
- Run doctrine-gen.php