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
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3', '8.4']
['8.1', '8.2', '8.3', '8.4', '8.5']
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"scripts": {
"cs-fix": "php-cs-fixer fix",
"rector": "rector",
"test": "phpunit --testdox --no-interaction",
"psalm": "psalm",
"test": "phpunit",
"test-watch": "phpunit-watcher watch"
}
}
3 changes: 2 additions & 1 deletion tests/NumericHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,10 @@ public function testTrimDecimalZeros(?string $input, ?string $expected): void
$this->assertSame($expected, NumericHelper::trimDecimalZeros($input));
}

public function trimDecimalZerosWithNonNumericString(): void
public function testTrimDecimalZerosWithNonNumericString(): void
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Value must be numeric string or null. "hello" given.');
NumericHelper::trimDecimalZeros('hello');
}
}
8 changes: 8 additions & 0 deletions tests/WildcardPatternTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ public function testDisableOptions(): void
$this->assertFalse($wildcardPattern->match('ABC42'));
}

public function testPreparedPatternIsCachedBetweenMatchCalls(): void
{
$wildcardPattern = new WildcardPattern('begin*end');

$this->assertTrue($wildcardPattern->match('begin-middle-end'));
$this->assertFalse($wildcardPattern->match('begin-middle'));
}

public function testImmutability(): void
{
$original = new WildcardPattern('*');
Expand Down
2 changes: 1 addition & 1 deletion tools/psalm/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require-dev": {
"vimeo/psalm": "^5.26.1 || ^6.5"
"vimeo/psalm": "^5.26.1 || ^6.16.1"
}
}
Loading