zver / string-helper
this is universal package template for development and testing
Installs: 2 137
Dependents: 8
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- zver/common: ^3.0
Requires (Dev)
- phpunit/phpunit: ^8.5
README
Use this template package structure to build your own packages and tests
Structure
- files - package files
- src - package src files
- tests - package PHPUnit tests
- tests/classes - classes needed for testing
- tests/files - files needed for testing
- tests/bootstrap.php - PHPUnit autoloading and helpers
- coverage - directory with coverage information, ignored from git
Helpers
- packageFile($name) - get full name of file with name=$name in files folder
- packageTestFile($name) - get full name of file with name=$name in tests/files folder
- Package/Test trait added with following methods:
- foreachTrue(array $values)
- foreachFalse(array $values)
- foreachEquals(array $values)
- foreachNotEquals(array $values)
- foreachSame(array $values)
- foreachNotSame(array $values)
Run tests
For testing PHPUnit installed required
cd package-template
composer install
php test.php