From b88856d0434bf3eb465b4ad872ee4eea6ccb582a Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Fri, 8 Mar 2024 20:59:04 +0000 Subject: [PATCH] 3.4.0 - 2024/03/08 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed Scrutinzer, Stickler, and TravisCI configurations. - Allow any/all versions for testing, remove Mockery (as it is unused) and introduce a Diff check for the more complex comparisons with running unit tests. - Add parameter type hints up to PHP 7.0 standards. - Stop warnings about null being used as a value. - Replace invalid XML document warnings with an exception. - Add support for namespaces in root node (Thank you blagi [#20](https://github.com/digitickets/lalit/issues/20)). - Throw `Exception` for invalid characters when using `Array2XML::createXML()` for normal values, `@value`, and `cdata` values (Thank you Jānis Elmeris [#17](https://github.com/digitickets/lalit/issues/17)). - Introduce GitHub workflow, testing the library on all versions from PHP 7.0 to 8.3 ### Significant upgrades to unit test files: - Introduce a proxy for PHPUnit's deprecation of `expectExceptionMessageRegExp($messageRegExp)`. - Partially fix the PHPUnit `phpunit.xml` configuration file. - Use the new proxy for all tests. - Replace the deprecated docblock entries for `@exceptedException` / `@expectedExceptionMessage` with their equivalent method calls `$this->expectedException()` / `$this->exceptedExceptionMessage()`. - Fix all data providers that have keys for the value in the datasets to match the parameter names of the test method. The use of named parameters was introduced in PHP 8.0. - Introduce the new attributes mechanism for data providers. This does NOT conflict with the older `@dataProvider` docblock annotation. --- CHANGELOG.md | 92 +++++++++++++++++++++++++++++++++------------------- README.md | 3 +- 2 files changed, 59 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9da3b87..4ddddae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,61 +1,85 @@ # Version History -**3.3.0** (2022/03/10) +## 3.4.0 - 2024/03/08 -* Fix namespaced attributes (Thank you Nitin Patel and Mirko Temperini [#10](https://github.com/digitickets/lalit/issues/10)) +- Removed Scrutinzer, Stickler, and TravisCI configurations. +- Allow any/all versions for testing, remove Mockery (as it is unused) and introduce a Diff check for the more complex + comparisons with running unit tests. +- Add parameter type hints up to PHP 7.0 standards. +- Stop warnings about null being used as a value. +- Replace invalid XML document warnings with an exception. +- Add support for namespaces in root node (Thank you blagi [#20](https://github.com/digitickets/lalit/issues/20)). +- Throw `Exception` for invalid characters when using `Array2XML::createXML()` for normal values, `@value`, and `cdata` + values (Thank you Jānis Elmeris [#17](https://github.com/digitickets/lalit/issues/17)). +- Introduce GitHub workflow, testing the library on all versions from PHP 7.0 to 8.3 -**3.2.0** (2022/03/10) +### Significant upgrades to unit test files: +- Introduce a proxy for PHPUnit's deprecation of `expectExceptionMessageRegExp($messageRegExp)`. +- Partially fix the PHPUnit `phpunit.xml` configuration file. +- Use the new proxy for all tests. +- Replace the deprecated docblock entries for `@exceptedException` / `@expectedExceptionMessage` with their equivalent + method calls `$this->expectedException()` / `$this->exceptedExceptionMessage()`. +- Fix all data providers that have keys for the value in the datasets to match the parameter names of the test method. + The use of named parameters was introduced in PHP 8.0. +- Introduce the new attributes mechanism for data providers. This does NOT conflict with the older `@dataProvider` + docblock annotation. -* Allow alternative labels to be defined (Thank you Frank Aguirre [#16](https://github.com/digitickets/lalit/pull/16)) -* Fix leading, embedded, and trailing newlines (no longer trims the data being). +## v3.3.0 - 2022/03/10 -**3.1.0** (2019/02/01) +- Fix namespaced attributes (Thank you Nitin Patel and Mirko Temperini [#10](https://github.com/digitickets/lalit/issues/10)) -* Limited support for (only PUBLIC and SYSTEM DTDs supported at the moment) (Thank you Nezabor [#8](https://github.com/digitickets/lalit/issues/8)) +## v3.2.0 - 2022/03/10 -**3.0.1** (2017/12/21) +- Allow alternative labels to be defined (Thank you Frank Aguirre [#16](https://github.com/digitickets/lalit/pull/16)) +- Fix leading, embedded, and trailing newlines (no longer trims the data being). -* Zero values/cdata are now handled appropriately (Thank you Daniel Carl [#6](https://github.com/digitickets/lalit/pull/6)) +## v3.1.0 - 2019/02/01 -**3.0** (2017/02/09) +- Limited support for (only PUBLIC and SYSTEM DTDs supported at the moment) (Thank you Nezabor [#8](https://github.com/digitickets/lalit/issues/8)) -* Dropped support for PHP < 7.0 +## v3.0.1 - 2017/12/21 -**2.0** (2016/11/17) +- Zero values/cdata are now handled appropriately (Thank you Daniel Carl [#6](https://github.com/digitickets/lalit/pull/6)) -* Ownership transferred to Digitickets +## v3.0 - 2017/02/09 -**1.6** (2016/07/27) +- Dropped support for PHP < 7.0 -* Empty values/attributes/cdata are now handled appropriately (Fixes [#3](https://github.com/rquadling/lalit/issues/3)) +## v2.0 - 2016/11/17 -**1.5** (2016/06/29) +- Ownership transferred to Digitickets -* Reintroduce support for hhvm -* Upgrade dependencies -* Fixed hhvm reading of broken xml not generating an exception -* Added CHANGELOG and removed version data from classes +## v1.6 - 2016/07/27 -**1.4** (2016/04/05) +- Empty values/attributes/cdata are now handled appropriately (Fixes [#3](https://github.com/rquadling/lalit/issues/3)) -* Enhanced to support Travis-CI, Scrutinizer. -* Enhanced with appropriate .gitattributes and .gitignore -* Introduced PHPUnit and unit tests -* Added README -* ISSUE: Removed support for hhvm in Travis-CI. +## v1.5 - 2016/06/29 -**1.3** (2015/11/05) +- Reintroduce support for hhvm +- Upgrade dependencies +- Fixed hhvm reading of broken xml not generating an exception +- Added CHANGELOG and removed version data from classes -* Fix empty nodes no longer reset any accumulated content for that level (Fixes [#2](https://github.com/rquadling/lalit/issues/2)) +## v1.4 - 2016/04/05 -**1.2** (2015/09/09) +- Enhanced to support Travis-CI, Scrutinizer. +- Enhanced with appropriate .gitattributes and .gitignore +- Introduced PHPUnit and unit tests +- Added README +- ISSUE: Removed support for hhvm in Travis-CI. -* Enhanced static analysis and added DocBlocks +## v1.3 - 2015/11/05 -**1.1** (2015/09/06) +- Fix empty nodes no longer reset any accumulated content for that level (Fixes [#2](https://github.com/rquadling/lalit/issues/2)) -* Fix namespace issue when combined with Symfony (Thank you Maxence Winandy [#1](https://github.com/rquadling/lalit/pull/1)) +## v1.2 - 2015/09/09 -**1.0** (2015/04/29) +- Enhanced static analysis and added DocBlocks -* Initial commit of Lalit Patel's XML2Array and Array2XML classes that allow XML <=> Array operation. +## v1.1 - 2015/09/06 + +- Fix namespace issue when combined with Symfony (Thank you Maxence Winandy [#1](https://github.com/rquadling/lalit/pull/1)) + +## v1.0 - 2015/04/29 + +- Initial commit of Lalit Patel's XML2Array and Array2XML classes that allow XML <=> Array operation. diff --git a/README.md b/README.md index af555d6..6228d38 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # LaLit's XML2Array / Array2XML -[![Build Status](https://img.shields.io/travis/digitickets/lalit.svg?style=for-the-badge&logo=travis)](https://travis-ci.org/digitickets/lalit) -[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/digitickets/lalit.svg?style=for-the-badge&logo=scrutinizer)](https://scrutinizer-ci.com/g/digitickets/lalit/) +[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/digitickets/lalit/.github%2Fworkflows%2Ftest.yml?style=for-the-badge&logo=GitHub)](https://github.com/digitickets/lalit/actions) [![GitHub issues](https://img.shields.io/github/issues/digitickets/lalit.svg?style=for-the-badge&logo=github)](https://github.com/digitickets/lalit/issues) [![PHP Version](https://img.shields.io/packagist/php-v/digitickets/lalit.svg?style=for-the-badge)](https://github.com/digitickets/lalit)