Skip to content

Commit 4053ede

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Filesystem] Fix str_contains deprecation [Security] Correctly initialize the voter property [ErrorHandler] Skip failing tests when "xdebug.file_link_format" option is defined [FrameworkBundle] Fix typo Update `changed-translation-files` step with native git diff command [DependencyInjection] fix XmlDumper when a tag contains also a 'name' property [Lock] Check the correct SQLSTATE error code for MySQL [ErrorHandler] Fix `ErrorHandlerTest::tearDown()` visibility [Lock] compatiblity with redis cluster 7 fix: typo [Messenger] trigger retry logic when message is a redelivery [PropertyAccess] Fix checking for missing properties add missing invalid extension error entry
2 parents f5c620f + d042b51 commit 4053ede

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Tests/ErrorHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class ErrorHandlerTest extends TestCase
3333
{
34-
public function tearDown(): void
34+
protected function tearDown(): void
3535
{
3636
$r = new \ReflectionProperty(ErrorHandler::class, 'exitCode');
3737
$r->setAccessible(true);

Tests/ErrorRenderer/FileLinkFormatterTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ public function testWhenNoFileLinkFormatAndNoRequest()
2727

2828
public function testAfterUnserialize()
2929
{
30+
if (get_cfg_var('xdebug.file_link_format')) {
31+
// There is no way to override "xdebug.file_link_format" option in a test.
32+
$this->markTestSkipped('php.ini has a custom option for "xdebug.file_link_format".');
33+
}
34+
3035
$ide = $_ENV['SYMFONY_IDE'] ?? $_SERVER['SYMFONY_IDE'] ?? null;
3136
$_ENV['SYMFONY_IDE'] = $_SERVER['SYMFONY_IDE'] = null;
3237
$sut = unserialize(serialize(new FileLinkFormatter()));

0 commit comments

Comments
 (0)