Skip to content

Commit 9ba69b4

Browse files
Merge branch 'develop' into dependabot/add-v2-config-file
2 parents 5830a32 + d58062e commit 9ba69b4

File tree

3 files changed

+31
-28
lines changed

3 files changed

+31
-28
lines changed

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,24 @@ name: Unit Tests
33
on: [push, pull_request]
44

55
jobs:
6-
run:
7-
runs-on: ${{ matrix.operating-system }}
6+
phpunit:
7+
name: PHP ${{ matrix.php-version }}
8+
runs-on: ubuntu-latest
89
strategy:
910
matrix:
10-
operating-system: [ubuntu-latest]
11-
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
12-
name: PHP ${{ matrix.php-versions }}
13-
11+
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1412
steps:
1513
- name: Checkout
16-
uses: actions/checkout@v1
14+
uses: actions/checkout@v2
1715

1816
- name: Setup PHP
1917
uses: shivammathur/setup-php@v2
2018
with:
21-
php-version: ${{ matrix.php-versions }}
19+
php-version: ${{ matrix.php-version }}
2220
coverage: none
2321

24-
- name: Get composer cache directory
25-
id: composer-cache
26-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
27-
28-
- name: Cache dependencies
29-
uses: actions/cache@v2
30-
with:
31-
path: ${{ steps.composer-cache.outputs.dir }}
32-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
33-
restore-keys: ${{ runner.os }}-composer-
34-
35-
- name: Install dependencies
36-
run: composer install --no-interaction --prefer-dist --no-suggest --no-progress
22+
- name: Install Composer dependencies
23+
uses: ramsey/composer-install@v2
3724

3825
- name: Run test suite
3926
run: composer test

CHANGELOG.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,42 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
56
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
67

8+
## [1.3.1] — 2020-01-14
9+
10+
* Fix PHPUnit warnings regarding `assertContains()` and `assertRegExp()`. Props [@jakobbuis](https://github.com/jakobbuis) ([#20], [#27], [#28])
11+
* Refactor the internal test scaffolding, including a move from Travis CI to GitHub Actions. Props [@peter279k](https://github.com/peter279k) for the assist with GitHub Actions ([#24])
12+
* Added PHP 8.0 support ([#26])
13+
714
## [1.3.0] — 2020-01-27
815

9-
* Replace `zendframework/zend-dom` with `laminas/laminas-dom` ([#16]).
10-
* Update Composer dependencies, add a `composer test` script ([#15]).
16+
* Replace `zendframework/zend-dom` with `laminas/laminas-dom` ([#16])
17+
* Update Composer dependencies, add a `composer test` script ([#15])
18+
1119

1220
## [1.2.0] - 2018-03-27
1321

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

24+
1625
## [1.1.0] - 2018-01-14
1726

18-
* Added the `assertElementContains()`, `assertElementNotContains()`, `assertElementRegExp()`, and `assertElementNotRegExp()` assertions, for verifying the contents of elements that match the given DOM query ([#6]).
19-
* Moved the `Tests` namespace into a development-only autoloader, to prevent them from potentially being included in projects using this library ([#7]).
20-
* [Based on this article by Martin Hujer](https://blog.martinhujer.cz/17-tips-for-using-composer-efficiently/#tip-%236%3A-put-%60composer.lock%60-into-%60.gitignore%60-in-libraries), remove the `composer.lock` file from the library ([#8]).
21-
* _Lower_ the minimum version of [zendframework/zend-dom](https://packagist.org/packages/zendframework/zend-dom) to 2.2.5 for maximum portability ([#9]).
27+
* Added the `assertElementContains()`, `assertElementNotContains()`, `assertElementRegExp()`, and `assertElementNotRegExp()` assertions, for verifying the contents of elements that match the given DOM query ([#6])
28+
* Moved the `Tests` namespace into a development-only autoloader, to prevent them from potentially being included in projects using this library ([#7])
29+
* [Based on this article by Martin Hujer](https://blog.martinhujer.cz/17-tips-for-using-composer-efficiently/#tip-%236%3A-put-%60composer.lock%60-into-%60.gitignore%60-in-libraries), remove the `composer.lock` file from the library ([#8])
30+
* _Lower_ the minimum version of [zendframework/zend-dom](https://packagist.org/packages/zendframework/zend-dom) to 2.2.5 for maximum portability ([#9])
31+
2232

2333
## [1.0.0] - 2017-10-24
2434

2535
* Initial release of the PHPUnit Markup Assertions Composer package.
2636

2737

2838
[Unreleased]: https://github.com/stevegrunwell/phpunit-markup-assertions/compare/master...develop
39+
[1.3.1]: https://github.com/stevegrunwell/phpunit-markup-assertions/releases/tag/v1.3.1
2940
[1.3.0]: https://github.com/stevegrunwell/phpunit-markup-assertions/releases/tag/v1.3.0
3041
[1.2.0]: https://github.com/stevegrunwell/phpunit-markup-assertions/releases/tag/v1.2.0
3142
[1.1.0]: https://github.com/stevegrunwell/phpunit-markup-assertions/releases/tag/v1.1.0
@@ -37,3 +48,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3748
[#13]: https://github.com/stevegrunwell/phpunit-markup-assertions/issues/13
3849
[#15]: https://github.com/stevegrunwell/phpunit-markup-assertions/pull/15
3950
[#16]: https://github.com/stevegrunwell/phpunit-markup-assertions/issues/16
51+
[#20]: https://github.com/stevegrunwell/phpunit-markup-assertions/pull/20
52+
[#24]: https://github.com/stevegrunwell/phpunit-markup-assertions/pull/24
53+
[#26]: https://github.com/stevegrunwell/phpunit-markup-assertions/pull/26
54+
[#27]: https://github.com/stevegrunwell/phpunit-markup-assertions/pull/27
55+
[#28]: https://github.com/stevegrunwell/phpunit-markup-assertions/pull/28

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"laminas/laminas-dom": "~2.7.2 || ^2.8"
2020
},
2121
"require-dev": {
22-
"symfony/phpunit-bridge": "^5.2"
22+
"symfony/phpunit-bridge": "^6.2"
2323
},
2424
"autoload": {
2525
"psr-4": {

0 commit comments

Comments
 (0)