Skip to content

Commit 45ce923

Browse files
author
Bartłomiej Nowak
committed
optional test-case for messenger_handle_trait_with_subscriber.php
1 parent ac2dd0f commit 45ce923

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/Type/Symfony/ExtensionTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use ReflectionMethod;
77
use Symfony\Component\HttpFoundation\Request;
88
use function class_exists;
9+
use function interface_exists;
910
use function strpos;
1011

1112
class ExtensionTest extends TypeInferenceTestCase
@@ -14,14 +15,12 @@ class ExtensionTest extends TypeInferenceTestCase
1415
/** @return mixed[] */
1516
public function dataFileAsserts(): iterable
1617
{
17-
if (class_exists('Symfony\Component\Messenger\Handler\MessageSubscriberInterface')) {
18-
// todo temporary check
19-
die('test if case is triggered');
18+
yield from $this->gatherAssertTypes(__DIR__ . '/data/messenger_handle_trait.php');
2019

20+
if (interface_exists('Symfony\Component\Messenger\Handler\MessageSubscriberInterface')) {
2121
yield from $this->gatherAssertTypes(__DIR__ . '/data/messenger_handle_trait_with_subscriber.php');
2222
}
2323

24-
yield from $this->gatherAssertTypes(__DIR__ . '/data/messenger_handle_trait.php');
2524
yield from $this->gatherAssertTypes(__DIR__ . '/data/envelope_all.php');
2625
yield from $this->gatherAssertTypes(__DIR__ . '/data/header_bag_get.php');
2726
yield from $this->gatherAssertTypes(__DIR__ . '/data/response_header_bag_get_cookies.php');

0 commit comments

Comments
 (0)