Skip to content

3.4.0 - 2024/03/08

Latest
Compare
Choose a tag to compare
@rquadling rquadling released this 08 Mar 21:01

3.4.0 - 2024/03/08

  • 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).
  • Throw Exception for invalid characters when using Array2XML::createXML() for normal values, @value, and cdata
    values (Thank you Jānis Elmeris #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.