Skip to content

Commit 4167a01

Browse files
committed
fix
1 parent 46d85e1 commit 4167a01

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tests/End2End/App/KernelForBufferTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private function supportsHubId(): bool
3535
}
3636
}
3737

38-
return true;
38+
return false;
3939
} catch (\Exception $e) {
4040
return false;
4141
}

tests/End2End/BufferFlushEnd2EndTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Symfony\Bundle\FrameworkBundle\Client;
99
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
1010
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
11-
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
1211

1312
if (!class_exists(KernelBrowser::class) && class_exists(Client::class)) {
1413
class_alias(Client::class, KernelBrowser::class);
@@ -34,14 +33,7 @@ protected static function getKernelClass(): string
3433
*/
3534
public function testLogMessagesBufferedAndFlushedAfterKernelTermination(): void
3635
{
37-
try {
38-
$client = static::createClient(['debug' => false]);
39-
} catch (InvalidConfigurationException $e) {
40-
if (str_starts_with($e->getMessage(), 'Unrecognized option "hub_id" under "monolog.handlers.sentry"')) {
41-
$this->markTestSkipped('Skipped because "hub_id" option does not exist for this PHP/Symfony version');
42-
}
43-
$this->fail();
44-
}
36+
$client = static::createClient(['debug' => false]);
4537

4638
$client->request('GET', '/buffer-flush');
4739

0 commit comments

Comments
 (0)