diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1b91e5a..8e0a0a3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,8 @@ jobs: - php: '7.4' - php: '8.0' - php: '8.1' + - php: '8.2' + - php: '8.3' steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 diff --git a/README.md b/README.md index e917f70..0e17e49 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Query Translator -[![Build Status](https://img.shields.io/github/workflow/status/netgen/query-translator/Tests?style=flat-square)](https://github.com/netgen/query-translator/actions?query=workflow%3ATests) +[![Build Status](https://img.shields.io/github/actions/workflow/status/netgen/query-translator/tests.yml?branch=master&&style=flat-square)](https://github.com/netgen/query-translator/actions?query=workflow%3ATests) [![Code Coverage](https://img.shields.io/codecov/c/github/netgen/query-translator.svg?style=flat-square)](https://codecov.io/gh/netgen/query-translator) [![Downloads](https://img.shields.io/packagist/dt/netgen/query-translator.svg?style=flat-square)](https://packagist.org/packages/netgen/query-translator) [![Latest stable](https://img.shields.io/packagist/v/netgen/query-translator.svg?style=flat-square)](https://packagist.org/packages/netgen/query-translator) diff --git a/composer.json b/composer.json index 1b2606c..49e93a5 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "php": "^7.0||^8.0" }, "require-dev": { - "phpunit/phpunit": "*", + "phpunit/phpunit": "<10", "symfony/phpunit-bridge": "*", "friendsofphp/php-cs-fixer": "^2.11" }, diff --git a/tests/Galach/Tokenizer/TokenExtractorTest.php b/tests/Galach/Tokenizer/TokenExtractorTest.php index 554740a..c2ffd68 100644 --- a/tests/Galach/Tokenizer/TokenExtractorTest.php +++ b/tests/Galach/Tokenizer/TokenExtractorTest.php @@ -45,6 +45,7 @@ public function testFullExtractTermTokenThrowsException() $reflectedProperty = $reflectedClass->getProperty('expressionTypeMap'); $reflectedProperty->setAccessible(true); $reflectedProperty->setValue( + null, [ '/(?foobar)/' => Tokenizer::TOKEN_TERM, ] @@ -63,6 +64,7 @@ public function testTextExtractTermTokenThrowsException() $reflectedProperty = $reflectedClass->getProperty('expressionTypeMap'); $reflectedProperty->setAccessible(true); $reflectedProperty->setValue( + null, [ '/(?foobar)/' => Tokenizer::TOKEN_TERM, ]