Due to the current status of the development of the library, it seems
like we will be supporting version 1.1 for a long time. Even when we
release version 2.0 we will still give support for version 1.1 for a
while.
This commit will make sure that version 1.1 is fully supported for PHP
7.2 and 7.3. Also, it will remove the support for HHVM since it will not
keep the compatibility with PHP anymore [1].
In order to make that happen, this commit will create a TestCase from
Validation so we can use the same API to create mocks in both PHPUnit
versions 4.0 and 5.0.
During the development of this commit, I noticed that PHPUnit 4.0 had
issues to mock "SplFileInfo" and for that reason, this commit will also
replace those mocks by "SplFileInfo" instances.
[1]: https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
We have the "Int" rule but "int" is reserved word in PHP 7, so, until we
rename this rule - which will be just on our first major release -, we
will have no support for this version of PHP.
- Move "tests/phpunit.xml" to "phpunit.xml.dist"
- Update documentation and contributing documents
- Update Travis settings
- Add "phpunit.xml" in the Git ignore list
- Allow `code_rating` check on Scrutinizer
- Exclude tests/* and vendor/* from Scrutinizer paths
- Fix Travis error when running composer
- Run `php_analyzer` on Scrutinizer
- Run `php_mess_detector` on Scrutinizer
- Run PHPUnit on Travis without using Foundation
- Run tests coverage on Scrutinizer
Also removes the unstable build badge, which is kind of redundant since
we will always respect the pattern of keeping the `master` branch stable
enough to be used.
Two Scrutinizer badges were added: code coverage and code quality.
Travis changed to report code coverage to Scrutinizer.
- Refactor Zend validator tests
- Fixed my email on composer.json
- Added dev packages in composer.json:
- Zend\Validator 2.*
- Symfony\Component\Valitor 2.*
PS: This is just a quick fix before Foundation can run this on his
own.