Skip to content

Releases: stevegrunwell/phpunit-markup-assertions

Version 2.0.0

10 Jul 23:27
1c6b4a7
Compare
Choose a tag to compare

⚠️ Breaking changes

This release changes the underlying library from the now-abandoned laminas/laminas-dom to the actively-supported symfony/dom-crawler library. In most cases, you shouldn't notice a difference, but please be aware if you have additional dependencies on the Laminas library. (#41)

Additionally, this release raises the minimum required PHP version from 5.6 to 7.1. Applications requiring PHP 5.6 or 7.0 should stick with the 1.x branch (and update PHP as soon as you're able!) (#52)

Other changes

  • Add assertNotContainsSelector return type (#37, props @szepeviktor)
  • Exclude dev-only files from the Composer distribution bundles, better-organize the repo (#40)
  • Add PHP_CodeSniffer, PHPStan (#45, #48)

Version 1.4.0

29 Dec 02:24
525823c
Compare
Choose a tag to compare
  • Force UTF-8 encoding for better support for non-Latin character sets (#35)
  • Move away from deprecated classes in laminas/laminas-dom [#32)

Version 1.3.1

14 Jan 16:28
e2445a9
Compare
Choose a tag to compare
  • Fix PHPUnit warnings regarding assertContains() and assertRegExp(). Props @jakobbuis (#20, #27, #28)
  • Refactor the internal test scaffolding, including a move from Travis CI to GitHub Actions. Props @peter279k for the assist with GitHub Actions (#24)
  • Added PHP 8.0 support (#26)

Version 1.3.0

27 Jan 17:52
2f8890b
Compare
Choose a tag to compare
  • Replace zendframework/zend-dom with laminas/laminas-dom (#16).
  • Update Composer dependencies, add a composer test script (#15).

Version 1.2.0

27 Mar 21:23
Compare
Choose a tag to compare

Bumped the minimum version of zendframework/zend-dom to 2.7, which includes a fix for attribute values that include spaces (#13).

Version 1.1.0

14 Jan 22:04
Compare
Choose a tag to compare
  • Added the assertElementContains(), assertElementNotContains(), assertElementRegExp(), and assertElementNotRegExp() assertions, for verifying the contents of elements that match the given DOM query (#6).
  • Moved the Tests namespace into a development-only autoloader, to prevent them from potentially being included in projects using this library (#7).
  • Based on this article by Martin Hujer, remove the composer.lock file from the library (#8).
  • Lower the minimum version of zendframework/zend-dom to 2.2.5 for maximum portability (#9).

Version 1.0.0

25 Oct 03:48
Compare
Choose a tag to compare

Initial release of the PHPUnit Markup Assertions Composer package.

Instructions for installation and usage can be found in the README.