Skip to content

Commit

Permalink
Expect alternative deprecation message for PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Sep 13, 2024
1 parent 660f51f commit 3ea1a47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/apm/commandFailedEvent-getServer-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ try {

?>
--EXPECTF--

Deprecated: Method MongoDB\Driver\Monitoring\CommandFailedEvent::getServer() is deprecated in %s
Deprecated: %r(Function|Method)%r MongoDB\Driver\Monitoring\CommandFailedEvent::getServer() is deprecated in %s
object(MongoDB\Driver\Server)#%d (%d) {
%A
}
3 changes: 1 addition & 2 deletions tests/apm/commandStartedEvent-getServer-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ $manager->executeCommand('admin', $command);

?>
--EXPECTF--

Deprecated: Method MongoDB\Driver\Monitoring\CommandStartedEvent::getServer() is deprecated in %s
Deprecated: %r(Function|Method)%r MongoDB\Driver\Monitoring\CommandStartedEvent::getServer() is deprecated in %s
object(MongoDB\Driver\Server)#%d (%d) {
%A
}
3 changes: 1 addition & 2 deletions tests/apm/commandSucceededEvent-getServer-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ $manager->executeCommand('admin', $command);

?>
--EXPECTF--

Deprecated: Method MongoDB\Driver\Monitoring\CommandSucceededEvent::getServer() is deprecated in %s
Deprecated: %r(Function|Method)%r MongoDB\Driver\Monitoring\CommandSucceededEvent::getServer() is deprecated in %s
object(MongoDB\Driver\Server)#%d (%d) {
%A
}

0 comments on commit 3ea1a47

Please sign in to comment.