Skip to content

Commit 5743a65

Browse files
Merge branch '4.3' into 4.4
* 4.3: bump phpunit-bridge cache-id Use assertStringContainsString when needed Use assert assertContainsEquals when needed Use assertEqualsWithDelta when required
2 parents c0c6320 + 42a8be3 commit 5743a65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Command/LintCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testLintIncorrectFile()
6060
$ret = $tester->execute(['filename' => $filename], ['decorated' => false]);
6161

6262
$this->assertEquals(1, $ret, 'Returns 1 in case of error');
63-
$this->assertContains('Unable to parse at line 3 (near "bar").', trim($tester->getDisplay()));
63+
$this->assertStringContainsString('Unable to parse at line 3 (near "bar").', trim($tester->getDisplay()));
6464
}
6565

6666
public function testConstantAsKey()

Tests/InlineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testDumpNumericValueWithLocale()
101101
}
102102

103103
$this->assertEquals('1.2', Inline::dump(1.2));
104-
$this->assertContains('fr', strtolower(setlocale(LC_NUMERIC, 0)));
104+
$this->assertStringContainsStringIgnoringCase('fr', setlocale(LC_NUMERIC, 0));
105105
} finally {
106106
setlocale(LC_NUMERIC, $locale);
107107
}

0 commit comments

Comments
 (0)