File tree 2 files changed +4
-4
lines changed
tests/Doctrine/ODM/MongoDB/Tests
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 34
34
"psr/cache" : " ^1.0 || ^2.0 || ^3.0" ,
35
35
"symfony/console" : " ^5.4 || ^6.0 || ^7.0" ,
36
36
"symfony/deprecation-contracts" : " ^2.2 || ^3.0" ,
37
- "symfony/event-dispatcher" : " ^7.1" ,
38
37
"symfony/var-dumper" : " ^5.4 || ^6.0 || ^7.0"
39
38
},
40
39
"require-dev" : {
49
48
"phpunit/phpunit" : " ^10.4" ,
50
49
"squizlabs/php_codesniffer" : " ^3.5" ,
51
50
"symfony/cache" : " ^5.4 || ^6.0 || ^7.0" ,
52
- "symfony/event-dispatcher-contracts" : " ^3.5 " ,
51
+ "symfony/event-dispatcher-contracts" : " ^2.0 || ^3.0 " ,
53
52
"vimeo/psalm" : " ~5.24.0"
54
53
},
55
54
"conflict" : {
Original file line number Diff line number Diff line change 32
32
use Documents \Tournament \ParticipantSolo ;
33
33
use Documents \User ;
34
34
use InvalidArgumentException ;
35
+ use LogicException ;
35
36
use MongoDB \BSON \ObjectId ;
36
37
use MongoDB \Client ;
37
38
use PHPUnit \Framework \Attributes \DataProvider ;
@@ -281,10 +282,10 @@ public function testCreateWithEventDispatcher(): void
281
282
$ client = new Client (self ::getUri ());
282
283
283
284
$ eventDispatcher = $ this ->createMock (EventDispatcherInterface::class);
284
- $ dm = DocumentManager::create ($ client , $ config , $ eventDispatcher );
285
+ $ dm = DocumentManager::create ($ client , $ config , $ eventDispatcher );
285
286
self ::assertSame ($ eventDispatcher , $ dm ->getEventDispatcher ());
286
287
287
- self ::expectException (\ LogicException::class);
288
+ self ::expectException (LogicException::class);
288
289
self ::expectExceptionMessage ('Use getEventDispatcher() instead of getEventManager() ' );
289
290
$ dm ->getEventManager ();
290
291
}
You can’t perform that action at this time.
0 commit comments