- Fix bug when running on PHP >= 7.1 and warning was raised when call
DOMDocument::schemaValidateSource
making impossible to obtain errors fromlibxml_clear_errors
and throw a newLibXmlException
- Add a new test
SchemaValidatorTest::testValidateWithEmptySchema
to make sure that aLibXmlException
exception is raised
- Fix bug when using windows path (backslashs), it does not validate
- Add docblock to buildSchemas
- Improve building, add phpstan
- Use phplint instead of php-parallel-lint
- Update dependencies using composer-require-checker
- This version does not include
Locator
norDownloaderInterface
implementations. That functionality is actually outside the scope of this library and that is the reason why it was removed. A new library was created to implement this, take a look ineclipxe/xmlresourceretriever
https://github.com/eclipxe13/XmlResourceRetriever/ - Constructor of
SchemaValidator
andSchemas
changed. - Add new method
SchemaValidator::validateWithSchemas
that do the same thing thanSchemaValidator::validate
but you must provide theSchemas
collection - Change from
protected
topublic
the methodSchemaValidator::buildSchemas
, it's usefull when used withSchemaValidator::validateWithSchemas
to change XSD remote locations to local or other places. - Add
XmlSchemaValidator::LibXmlException
. It contains a method to exec a callable isolating the use internal errors setting and other to collect libxml errors and throw it like an exception. - Rename
Schemas::getXsd
toSchemas::getImporterXsd
- Remove compatibility with PHP 5.6, minimum version is now PHP 7.0
- Add scalar type declarations
- Remove test assets from Mexican SAT
- Tests: Move files served by php built-in web server to from assets to public
- Fix implementation of libxml use internal errors on
SchemaValidator::validate
- When creating the dom document avoid warnings (fix using the correct constant)
- Avoid using versions
@stable
incomposer.json
- Install scrutinizer/ocular only on travis and PHP 7.1
- Fix test were fialing on php 7.0 and 7.1
- class PHPUnit_Framework_TestCase is deprecated
- wait for 0.5 seconds after run the php server
- Fix project name in README.md
- Add composer.json tag xmlschema
- Remove typo on .travis.yml
- This change does not introduce any break with previous versions but add a new interface and objects to perform the download
- Library
- Add the interface
XmlSchemaValidator\Downloader\DownloaderInterface
and implementationsXmlSchemaValidator\Downloader\CurlDownloader
,XmlSchemaValidator\Downloader\NullDownloader
andXmlSchemaValidator\Downloader\PhpDownloader
. - Make
XmlSchemaValidator\Locator
use theDownloaderInterface
- Add tests for the Locator constructor and downloader getter.
- Add the interface
- Tests
- Add tests for the Locator constructor and downloader getter.
- Add tests for
XmlSchemaValidator\Downloader
- Start php internal server to run tests on downloaders (bootstrap.php)
- Default tests for locator uses a faker test to avoid external downloads
- Continuous Integration
- Add 7.1
- Drop hhvm
- Standarization
- Rename folder
sources
tosrc
- Rename
.php_cs
to.php_cs.dist
require devfriendsofphp/php-cs-fixer
- Add
phpcs.xml.dist
- Apply code style fixes from
phpcbf
andphp-cs-fixer
- Rename folder
- Documentation
- Add basic usage to the validator
- Add
CHANGELOG.md
,TODO.md
,CODE_OF_CONDUCT.md
,CONTRIBUTING.md
- Fix badges
- Drop coveralls
- Follow recommendations from sensiolabs
- Project does not depends on zip extension
- Include SensioLabs Insight