phptt a.k.a php test tools - runing $ phptt lcov <PATH_TO_TEST>

by rogeriopradoj
macOS ◆ xterm-256color ◆ zsh 645 views

One usage example of phptt (a.k.a php test tools).

Information about installation are in its website

All the commands are available here:

$ phptt

phptt a.k.a php test tools
GENERAL usage:
    phptt help ....................... Display this help message
    phptt update ..................... Update scripts and Docker images
GENERATING usage:
    phptt generate [PHPT_DIR] -f <function_name> |-c <class_name> -m <method_name> -b|e|v [-s skipif:ini:clean:done] [-k win|notwin|64b|not64b] [-x ext]
    Where:
    -f function_name ................. Name of PHP function, eg cos
    -c class name .................... Name of class, eg DOMDocument
    -m method name ................... Name of method, eg createAttribute
    -b ............................... Generate basic tests
    -e ............................... Generate error tests
    -v ............................... Generate variation tests
    -s sections....................... Create optional sections, colon separated list
    -k skipif key..................... Skipif option, only used if -s skipif is used.
    -x extension...................... Skipif option, specify extension to check for
    -h ............................... Print this message
TESTING usage:
    phptt test <path/to/test.phpt|suite> [<version>] ... Run tests
    phptt lcov <path/to/test.phpt|suite> [<version>] ... Run tests and generate GCOV/LCOV report