Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit 3716acf

Browse files
minor #28025 Use an empty string as default for assertEquals (DavidPrevot)
This PR was merged into the 3.4 branch. Discussion ---------- Use an empty string as default for assertEquals Make sure it isn’t interpreted as a type NULL, making the test fail with PHPUnit 7.2. | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT This shouldn’t break the existing tests, but will also make them work with recent PHPUnit. Commits ------- 31353147a3 Use an empty string as default for assertEquals
2 parents 351b74b + ebdecd5 commit 3716acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Tests/ClassMapGeneratorTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function testCreateMapFinderSupport()
138138
), ClassMapGenerator::createMap($finder));
139139
}
140140

141-
protected function assertEqualsNormalized($expected, $actual, $message = null)
141+
protected function assertEqualsNormalized($expected, $actual, $message = '')
142142
{
143143
foreach ($expected as $ns => $path) {
144144
$expected[$ns] = str_replace('\\', '/', $path);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /