mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
* N°5120 - Unattended install : use cty toolkit version * N°5120 - CLI mode validation * 5120 - bring CI enhancements * 5120 - bring back saas use-itop-config option: to read db settings from conf directly * 5120 - move unattended script in setup folder/unattended-install * 5120 - use-itop-config option: take db_tls_enabled and db_tls_ca into account * 5120 - move test * 5120 - put ci enhancements back - logs and conf preservation with install mode * 5120 - keep PR simple - remove saas use-itop-config option for now * 5120 - remove ci enhancement to preserve configuration * Update setup/unattended-install/README.md Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com> * 5120 - documentation * 5120 - fix log level * 5120 - fix test * fix phpunit test comment --------- Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
PHP unitary tests
Where should I add my test?
- Covers an iTop PHP class or method?
- Most likely in "unitary-tests".
- Covers the consistency of some data through the app?
- Most likely in "integration-tests".
Tips
Measure the time spent in a test
Simply cut'n paste the following line at several places within the test function:
if (isset($fStarted)) {echo 'L'.__LINE__.': '.round(microtime(true) - $fStarted, 3)."\n";} $fStarted = microtime(true);