diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2383b8cd..bf1155c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.2', '7.3', '7.4'] + php: ['7.3', '7.4'] container: image: php:${{ matrix.php }}-cli-alpine steps: @@ -53,9 +53,7 @@ jobs: - name: Test & Generate Code Coverage run: | - wget -q -O phpunit https://phar.phpunit.de/phpunit-8.phar - chmod +x phpunit - ./phpunit -d memory_limit=512M --coverage-clover tests/logs/clover.xml + ./vendor/bin/phpunit -d memory_limit=512M --coverage-clover tests/logs/clover.xml - name: Send to coveralls run: | diff --git a/README.md b/README.md index a4e84900..8a62fd51 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ All you have to do: ## Requirements -* PHP 7.2 / 7.3 / 7.4 +* PHP 7.3 / 7.4 * Symfony 5.0 * See also the `require` section of [composer.json](composer.json) @@ -69,7 +69,7 @@ the way to tell this bundle to interact with your application. You can run the tests with: ```console $ php tests/app/bin/console cache:clear # Only if you added new code -$ phpunit +$ vendor/bin/phpunit ``` ## Validate code with coding standards diff --git a/composer.json b/composer.json index c4e1c04b..5a6178c2 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": "^7.2.5", + "php": "^7.3", "ext-json": "*", "symfony/framework-bundle": "~5.0.1", "symfony/console": "~5.0.1", @@ -35,6 +35,7 @@ "jmgq/a-star": "^1.1" }, "require-dev": { + "phpunit/phpunit": "~9.0.1", "symfony/yaml": "~5.0.1", "symfony/expression-language": "~5.0.1", "symfony/security-core": "~5.0.1", diff --git a/tests/Message/TaskMessageTest.php b/tests/Message/TaskMessageTest.php index e57d066c..ad61bc5c 100644 --- a/tests/Message/TaskMessageTest.php +++ b/tests/Message/TaskMessageTest.php @@ -58,7 +58,7 @@ public function testExecute(string $model, string $generator, string $reducer, b $ids = []; foreach ($bugs[0]->getSteps() as $step) { if ($step->getData() && $step->getData()->has('product')) { - $ids[] = $step->getData()->get('product'); + $ids[] = (int) $step->getData()->get('product'); } } if ('You added an out-of-stock product into cart! Can not checkout' === $bugs[0]->getBugMessage()) {