Skip to content

Commit 0965574

Browse files
Merge branch 'luispabon-phpunit7'
2 parents e5addb6 + 45619a9 commit 0965574

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: php
22
sudo: false
33
php:
4+
- 7.2
45
- 7.1
5-
- 7.0
66
install:
77
- composer install --prefer-dist
88
script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This library is [MIT-licensed](LICENSE.txt).
1313

1414
$ composer require helmich/phpunit-psr7-assert
1515

16-
**Compatibility notice**: [Version 1](https://github.com/martin-helmich/phpunit-psr7-assert/tree/v1) (the `v1` branch) of this library is compatible with PHPUnit 4.8 to 5. [Version 2](https://github.com/martin-helmich/phpunit-psr7-assert/tree/master) (the `master` branch) is compatible with PHPUnit 6 and later. When using `composer require`, Composer should automatically pick the correct version for you.
16+
**Compatibility notice**: [Version 1](https://github.com/martin-helmich/phpunit-psr7-assert/tree/v1) (the `v1` branch) of this library is compatible with PHPUnit 4.8 to 5. [Version 2](https://github.com/martin-helmich/phpunit-psr7-assert/tree/v2) (the `v2` branch) is compatible with PHPUnit 6. [Version 3](https://github.com/martin-helmich/phpunit-psr7-assert/tree/master) (the `master` branch) is compatible with PHPUnit 7. When using `composer require`, Composer should automatically pick the correct version for you.
1717

1818
## Usage
1919

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
],
1111
"require": {
1212
"psr/http-message": "^1.0",
13-
"phpunit/phpunit": "^6.0",
13+
"phpunit/phpunit": "^7.0",
1414
"helmich/phpunit-json-assert": "^2.0",
15-
"php": ">=7.0"
15+
"php": ">=7.1"
1616
},
1717
"require-dev": {
1818
"guzzlehttp/psr7": "^1.2",

src/Constraint/HasStatusConstraint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ protected function matches($other): bool
4242
return $this->status->evaluate($other->getStatusCode(), '', true);
4343
}
4444

45-
protected function additionalFailureDescription($other)
45+
protected function additionalFailureDescription($other): string
4646
{
4747
if ($other instanceof ResponseInterface) {
48-
return 'Actual status is ' . $other->getStatusCode() . " and the body contains: " . $other->getBody();
48+
return 'Actual status is ' . $other->getStatusCode() . ' and the body contains: ' . $other->getBody();
4949
}
5050
return '';
5151
}

0 commit comments

Comments
 (0)