Skip to content

Commit

Permalink
Replace deprecated methods from phpunit issue 5062
Browse files Browse the repository at this point in the history
  • Loading branch information
eerison authored and Erison Silva committed Nov 2, 2023
1 parent a58bdca commit adf429f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions config/sets/phpunit100.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,47 @@

// https://github.com/sebastianbergmann/phpunit/pull/3687
new MethodCallRename('PHPUnit\Framework\MockObject\MockBuilder', 'setMethods', 'onlyMethods'),

//https://github.com/sebastianbergmann/phpunit/issues/5062
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectDeprecationMessage',
'expectExceptionMessage'
),
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectDeprecationMessageMatches',
'expectExceptionMessageMatches'
),
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectNoticeMessage',
'expectExceptionMessage'
),
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectNoticeMessageMatches',
'expectExceptionMessageMatches'
),
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectWarningMessage',
'expectExceptionMessage'
),
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectWarningMessageMatches',
'expectExceptionMessageMatches'
),
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectErrorMessage',
'expectExceptionMessage'
),
new MethodCallRename(
'PHPUnit\Framework\MockObject\MockBuilder',
'expectErrorMessageMatches',
'expectExceptionMessageMatches'
),
]);
};

0 comments on commit adf429f

Please sign in to comment.