prophp/tests-lite

v0.1.6 2022-11-06 09:26 UTC

This package is not auto-updated.

Last update: 2024-10-20 18:06:13 UTC


README

  • PHP 8.0+
  • Linux

◦ Install

composer require prophp/tests-lite --dev
vendor/bin/tests-lite

◦ Create test placeholder

bin/test create <location/path> <testTitle>[optional]
bin/test create src/Lib/Example missingFileException

◦ Run tests

bin/test
bin/test test src/Lib/Example/missingFileException

◦ Use inside tests

Helper::getDataDirPath($location)

◦ Custom config (optional)

<rootPath/>config/tests-lite.json

{
  "webrootPath": "/var/www/html/",
  "testsDirTitle": "tests"
}