Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 20da13b

Browse files
committed
Merge branch 'feature/325-integration-tests'
Close #325
2 parents e24b20a + 5758b2e commit 20da13b

17 files changed

+347
-58
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ cache:
99
env:
1010
global:
1111
- COMPOSER_ARGS="--no-interaction"
12-
- COVERAGE_DEPS="php-coveralls/php-coveralls"
1312
- LEGACY_DEPS="phpunit/phpunit"
1413

1514
matrix:
@@ -31,6 +30,7 @@ matrix:
3130
- DEPS=locked
3231
- CHECK_CS=true
3332
- TEST_COVERAGE=true
33+
- INTEGRATION_DEPS="php-coveralls/php-coveralls"
3434
- php: 7
3535
env:
3636
- DEPS=latest
@@ -52,6 +52,10 @@ matrix:
5252
- php: 7.2
5353
env:
5454
- DEPS=latest
55+
- php: 7.2
56+
name: Integration tests
57+
env:
58+
- INTEGRATION_DEPS="http-interop/http-factory-diactoros"
5559

5660
before_install:
5761
- if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
@@ -62,7 +66,7 @@ install:
6266
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
6367
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
6468
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
65-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
69+
- if [[ $INTEGRATION_DEPS != '' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $INTEGRATION_DEPS ; fi
6670
- stty cols 120 && composer show
6771

6872
script:

CHANGELOG.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 1.8.5 - TBD
5+
## 1.8.6 - 2018-09-05
66

77
### Added
88

99
- Nothing.
1010

1111
### Changed
1212

13-
- Nothing.
13+
- [#325](https://github.com/zendframework/zend-diactoros/pull/325) changes the behavior of `ServerRequest::withParsedBody()`. Per
14+
- PSR-7, it now no longer allows values other than `null`, arrays, or objects.
15+
16+
- [#325](https://github.com/zendframework/zend-diactoros/pull/325) changes the behavior of each of `Request`, `ServerRequest`, and
17+
`Response` in relation to the validation of header values. Previously, we
18+
allowed empty arrays to be provided via `withHeader()`; however, this was
19+
contrary to the PSR-7 specification. Empty arrays are no longer allowed.
1420

1521
### Deprecated
1622

@@ -22,8 +28,36 @@ All notable changes to this project will be documented in this file, in reverse
2228

2329
### Fixed
2430

31+
- [#325](https://github.com/zendframework/zend-diactoros/pull/325) ensures that `Uri::withUserInfo()` no longer ignores values of
32+
`0` (numeric zero).
33+
34+
- [#325](https://github.com/zendframework/zend-diactoros/pull/325) fixes how header values are merged when calling
35+
`withAddedHeader()`, ensuring that array keys are ignored.
36+
37+
## 1.8.5 - 2018-08-10
38+
39+
### Added
40+
41+
- Nothing.
42+
43+
### Changed
44+
2545
- Nothing.
2646

47+
### Deprecated
48+
49+
- Nothing.
50+
51+
### Removed
52+
53+
- Nothing.
54+
55+
### Fixed
56+
57+
- [#324](https://github.com/zendframework/zend-diactoros/pull/324) fixes a reference
58+
to an undefined variable in the `ServerRequestFactory`, which made it
59+
impossible to fetch a specific header by name.
60+
2761
## 1.8.4 - 2018-08-01
2862

2963
### Added

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"require-dev": {
3131
"ext-dom": "*",
3232
"ext-libxml": "*",
33+
"php-http/psr7-integration-tests": "dev-master",
3334
"phpunit/phpunit": "^5.7.16 || ^6.0.8 || ^7.2.7",
3435
"zendframework/zend-coding-standard": "~1.0"
3536
},

0 commit comments

Comments
 (0)