prophp/tests-lite

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/prophp/tests-lite

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

This package is not auto-updated.

Last update: 2025-10-05 23:12:38 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"
}