zver/sqlite

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.0) of this package.

this is universal package template for development and testing and composer distribution

1.0.0 2017-07-24 20:40 UTC

This package is auto-updated.

Last update: 2020-01-16 11:13:45 UTC


README

Use this template package structure to build your own packages and tests and composer distribution

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)
    • assertException(callable $callback, $expectedException = 'Exception', $expectedCode = null, $expectedMessage = null)

Run tests

For testing PHPUnit installed required

cd package-template
composer install
php test.php