File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
55 colors =" true"
66 cacheDirectory =" .phpunit.cache"
7- displayDetailsOnPhpunitDeprecations =" true"
8- displayDetailsOnTestsThatTriggerDeprecations =" true"
7+ failOnAllIssues =" true"
8+ displayDetailsOnAllIssues =" true"
9+ beStrictAboutChangesToGlobalState =" true"
910>
1011 <coverage >
1112 <report >
Original file line number Diff line number Diff line change @@ -189,8 +189,10 @@ public function testEmailException(): void
189189 $ this ->errorHandler ->emailException ($ this ->exception );
190190
191191 self ::assertNotEmpty ($ this ->emailsSent );
192- $ message = \current ($ this ->emailsSent );
192+ $ message = $ this ->emailsSent [0 ];
193+ self ::assertIsArray ($ message );
193194 $ messageText = $ message ['body ' ];
195+ self ::assertIsString ($ messageText );
194196 self ::assertStringContainsString ($ this ->exception ->getMessage (), $ messageText );
195197 self ::assertStringContainsString ($ _SESSION [$ key ], $ messageText );
196198 self ::assertStringContainsString ($ _POST [$ key ], $ messageText );
You can’t perform that action at this time.
0 commit comments