diff --git a/CHANGELOG.md b/CHANGELOG.md index dc02bc3..b45ad5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.2.0] - 2018-03-27 + +* Bumped the minimum version of zendframework/zend-dom to 2.7, which includes a fix for attribute values that include spaces ([#13]). + ## [1.1.0] - 2018-01-14 * Added the `assertElementContains()`, `assertElementNotContains()`, `assertElementRegExp()`, and `assertElementNotRegExp()` assertions, for verifying the contents of elements that match the given DOM query ([#6]). @@ -17,9 +21,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. [Unreleased]: https://github.com/stevegrunwell/phpunit-markup-assertions/compare/master...develop +[1.2.0]: https://github.com/stevegrunwell/phpunit-markup-assertions/releases/tag/v1.2.0 [1.1.0]: https://github.com/stevegrunwell/phpunit-markup-assertions/releases/tag/v1.1.0 [1.0.0]: https://github.com/stevegrunwell/phpunit-markup-assertions/releases/tag/v1.0.0 [#6]: https://github.com/stevegrunwell/phpunit-markup-assertions/issues/6 [#7]: https://github.com/stevegrunwell/phpunit-markup-assertions/issues/7 [#8]: https://github.com/stevegrunwell/phpunit-markup-assertions/issues/8 [#9]: https://github.com/stevegrunwell/phpunit-markup-assertions/issues/9 +[#13]: https://github.com/stevegrunwell/phpunit-markup-assertions/issues/13 diff --git a/composer.json b/composer.json index 3dc90af..768eb0c 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "source": "https://github.com/stevegrunwell/phpunit-markup-assertions/" }, "require": { - "zendframework/zend-dom": "^2.2.5" + "zendframework/zend-dom": "^2.7" }, "require-dev": { "phpunit/phpunit": ">=6.0" diff --git a/tests/MarkupAssertionsTraitTest.php b/tests/MarkupAssertionsTraitTest.php index a2145e3..a8ef54c 100644 --- a/tests/MarkupAssertionsTraitTest.php +++ b/tests/MarkupAssertionsTraitTest.php @@ -72,6 +72,19 @@ public function testAssertHasElementWithAttributes() ); } + /** + * @link https://github.com/stevegrunwell/phpunit-markup-assertions/issues/13 + */ + public function testAssertHasElementWithAttributesWithSpacesInTheAttributeValue() + { + $this->testcase->assertHasElementWithAttributes( + [ + 'data-attr' => 'foo bar baz', + ], + '