unit-test.php
2023-04-05 jj5 - unit test host.
Tags
Table of Contents
- main() : void
- 2023-03-31 jj5 - this function hosts a unit test, it's just for convenience. It sets up your environment and then calls run_test() which you should define. If debugging is enabled then no try-catch block is used, otherwise it is. Also we make sure DEBUG is defined before we run your code so you shouldn't have to worry about whether it is defined or not.
Functions
main()
2023-03-31 jj5 - this function hosts a unit test, it's just for convenience. It sets up your environment and then calls run_test() which you should define. If debugging is enabled then no try-catch block is used, otherwise it is. Also we make sure DEBUG is defined before we run your code so you shouldn't have to worry about whether it is defined or not.
main(array<string|int, mixed> $argv) : void
Parameters
- $argv : array<string|int, mixed>
-
the command-line options.