Skip to content

This is for testing PHP code in the Zend Framework + Doctrine + PHPUnit ecosystem

License

Notifications You must be signed in to change notification settings

polderknowledge/zend-doctrine-test-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

return [
    'module_listener_options' => [
        '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'

About

This is for testing PHP code in the Zend Framework + Doctrine + PHPUnit ecosystem

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages