An annotation based Hydrator system
This is a PHP 7 Composer compatible library for providing an annotation based hydration facility.
This code is currently ALPHA standard - it has had limited testing and is still under active development.
UNIT TESTS ARE CURRENTLY BROKEN.
The following PHP FIG standards should be followed:
- PSR 1 - Basic Coding Standard
- PSR 2 - Coding Style Guide
- PSR 3 - Logger Interface
- PSR 4 - Autoloading Standard
- PSR 5 - PHPDoc Standard - (still in draft)
- PSR 12 - Extended Coding Style Guide - (still in draft)
PHP Code Sniffer highlights potential coding standards issues.
PHP CS will use the configuration in
phpcs.xml.dist by default.
To see which sniffs are running add "-s"
PHPUnit is installed for unit testing (tests are in
To run unit tests:
For a list of the tests that have ran:
To restrict the tests run:
vendor/bin/phpunit --filter 'Cors\\Exceptions\\BadOrigin'
vendor/bin/phpunit --filter 'ExceptionTest'
for all tests which have "Exception" in them and:
vendor/bin/phpunit --filter '(ExceptionTest::testEverything|ExceptionTest::testStub)'
to test the two testEverything and testStub methods in the ExceptionTest class.