Files
iTop/tests/php-unit-tests
Pierre Goiffon 6995a3c641 N°6889 backup mysqldump call : restore possibility to connect using socket protocol (#591)
With previous fix (N°6123) we forced to use the tcp protocol each time. This was blocking for users wanting to connect using the socket protocol on localhost.

Now for localhost we will : 
- send both port and protocol arguments if the `db_host` config parameter does contain a port
- don't send any of the port or protocol arguments if `db_host` doesn't contain a port
2023-12-20 15:19:50 +01:00
..
2023-11-15 11:14:07 +01:00
2023-11-15 11:14:07 +01:00

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);