Sometime we can't reproduce an customer's problem based only on the Issue description. In this case the preffered way is to make a PR with a reproducible Test Case.
Examples of other test cases you can find in the Cycle reository.
To implement custom test case you need to do few actions.
cycle/orm
repository. Install composer
dependencies.php tests/generate-case.php
. tests/ORM/Functional/Driver/Common/Integration
directory.In the generated Case directory you'll find:
Entity
dir.schema.php
file.CaseTest.php
with one example test method.Feel free to change all of them to reproduce your case.
Note
If the issue doesn't depend on any database driver you can use only SQLite driver to test it locally with better performance (thepdo_sqlite
extention required).
To run test case Case42
with the SQLite driver just execute:
vendor/bin/phpunit --group driver-sqlite --filter Case42
Push your changes in a new branch and go to Cycle ORM repository.
You will see the suggestion with button Compare & pull request
.
Press it and fill the form.