Skip to content

Commit 88e64e6

Browse files
Merge branch '6.5' into 7.3
2 parents 479ebc4 + d47ccd9 commit 88e64e6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

ChangeLog-6.5.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ All notable changes of the PHPUnit 6.5 release series are documented in this fil
44

55
## [6.5.13] - 2018-MM-DD
66

7-
* Fixed [#3254](https://github.com/sebastianbergmann/phpunit/issues/3254): TextUI test runner cannot run a `Test` instance that is not a `TestSuite`
87
* Fixed [#3181](https://github.com/sebastianbergmann/phpunit/issues/3181): `--filter` should be case-insensitive
8+
* Fixed [#3234](https://github.com/sebastianbergmann/phpunit/issues/3234): `assertArraySubset()` with `$strict=true` does not display differences properly
9+
* Fixed [#3254](https://github.com/sebastianbergmann/phpunit/issues/3254): TextUI test runner cannot run a `Test` instance that is not a `TestSuite`
910

1011
## [6.5.12] - 2018-08-22
1112

src/Framework/Constraint/ArraySubset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ public function evaluate($other, $description = '', $returnResult = false)
7878
$f = new ComparisonFailure(
7979
$patched,
8080
$other,
81-
\print_r($patched, true),
82-
\print_r($other, true)
81+
\var_export($patched, true),
82+
\var_export($other, true)
8383
);
8484

8585
$this->fail($other, $description, $f);

tests/unit/Framework/Constraint/ArraySubsetTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function testEvaluateFailMessage(): void
7979
} catch (ExpectationFailedException $expectedException) {
8080
$comparisonFailure = $expectedException->getComparisonFailure();
8181
$this->assertNotNull($comparisonFailure);
82-
$this->assertContains('[foo] => bar', $comparisonFailure->getExpectedAsString());
83-
$this->assertContains('[baz] => bar', $comparisonFailure->getActualAsString());
82+
$this->assertContains("'foo' => 'bar'", $comparisonFailure->getExpectedAsString());
83+
$this->assertContains("'baz' => 'bar'", $comparisonFailure->getActualAsString());
8484
}
8585
}
8686
}

0 commit comments

Comments
 (0)