Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polderknowledge/zend-doctrine-test-bootstrap
This is for testing PHP code in the Zend Framework + Doctrine + PHPUnit ecosystem
https://github.com/polderknowledge/zend-doctrine-test-bootstrap
doctrine-orm phpunit zend zend-framework3 zendframework
Last synced: about 1 month ago
JSON representation
This is for testing PHP code in the Zend Framework + Doctrine + PHPUnit ecosystem
- Host: GitHub
- URL: https://github.com/polderknowledge/zend-doctrine-test-bootstrap
- Owner: polderknowledge
- License: mit
- Created: 2019-02-08T12:03:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T12:16:12.000Z (almost 6 years ago)
- Last Synced: 2024-11-18T18:48:48.769Z (about 1 month ago)
- Topics: doctrine-orm, phpunit, zend, zend-framework3, zendframework
- Language: PHP
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# zend-doctrine-test-bootstrap
This library is for testing PHP code in the Zend Framework 3 + Doctrine + PHPUnit ecosystem
It contains:
* An AbstractTest class for PHPUnit to get hold of the ServiceManager and EntityManager
* A singleton Bootstrap class which can bootstrap Zend and reset the database to a clean state## CI configuration
This library wil read an extra Zend application configuration file if present: 'config/test.config.php'
I recommend you create this:
```php
[
'config_glob_paths' => [
'config/autoload/{,*.}{global,local,test}.php',
],
],
];
```And then you can commmit the database connection parameters of your CI environment to 'config/autoload/doctrine.test.php'