Skip to content

Commit

Permalink
[TesterBundle] deprecate EventListenerTestTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoiriert committed Aug 11, 2024
1 parent 60c7004 commit b80fb2a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 30 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"symfony/console": "^6.4.0",
"symfony/css-selector": "^6.4.0",
"symfony/dependency-injection": "^6.4.0",
"symfony/deprecation-contracts": "^3.5.0",
"symfony/doctrine-bridge": "^6.4.0",
"symfony/doctrine-messenger": "^6.4.0",
"symfony/dom-crawler": "^6.4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

use PHPUnit\Framework\TestCase;

trigger_deprecation('draw/tester-bundle', '0.10.44', 'The "%s" class is deprecated, use "%s" instead.', EventListenerTestTrait::class, EventDispatcherTesterTrait::class);

/**
* @deprecated
*/
trait EventListenerTestTrait
{
public static function assertEventListenersRegistered(string $className, array $expectedEvents): void
Expand Down
1 change: 1 addition & 0 deletions packages/tester-bundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"draw/core": "^0.11",
"draw/tester": "^0.11",
"symfony/browser-kit": "^6.4.0",
"symfony/deprecation-contracts": "^3.5.0",
"symfony/framework-bundle": "^6.4.0",
"symfony/http-foundation": "^6.4.0",
"symfony/validator": "^6.4.0"
Expand Down
30 changes: 0 additions & 30 deletions tests/Mailer/EventListener/EmailComposerListenerTest.php

This file was deleted.

0 comments on commit b80fb2a

Please sign in to comment.