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 877b857
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions config/sets/phpunit100.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,31 @@

// 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\TestCase', 'expectDeprecationMessage', 'expectExceptionMessage'),
new MethodCallRename(
'PHPUnit\Framework\TestCase',
'expectDeprecationMessageMatches',
'expectExceptionMessageMatches'
),
new MethodCallRename('PHPUnit\Framework\TestCase', 'expectNoticeMessage', 'expectExceptionMessage'),
new MethodCallRename(
'PHPUnit\Framework\TestCase',
'expectNoticeMessageMatches',
'expectExceptionMessageMatches'
),
new MethodCallRename('PHPUnit\Framework\TestCase', 'expectWarningMessage', 'expectExceptionMessage'),
new MethodCallRename(
'PHPUnit\Framework\TestCase',
'expectWarningMessageMatches',
'expectExceptionMessageMatches'
),
new MethodCallRename('PHPUnit\Framework\TestCase', 'expectErrorMessage', 'expectExceptionMessage'),
new MethodCallRename(
'PHPUnit\Framework\TestCase',
'expectErrorMessageMatches',
'expectExceptionMessageMatches'
),
]);
};

0 comments on commit 877b857

Please sign in to comment.