Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/Rules/Deprecations/FetchingDeprecatedConstRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function testFetchingDeprecatedPhp86Constants(): void
{
$errors = [];
if (PHP_VERSION_ID >= 80600) {
if (!defined('MB_ONIGURUMA_VERSION')) {
if (!defined('MB_ONIGURUMA_VERSION') || !defined('SORT_LOCALE_STRING')) {
$this->markTestSkipped('Required constants are not available.');
}

Expand All @@ -96,6 +96,10 @@ public function testFetchingDeprecatedPhp86Constants(): void
'Use of constant MB_ONIGURUMA_VERSION is deprecated.',
5,
],
[
'use one of the Collator::*sort*() methods instead',
6,
],
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
namespace FetchingDeprecatedConst\Php86;

echo MB_ONIGURUMA_VERSION;
echo SORT_LOCALE_STRING;