Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Add support for PHP 7.2 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jun 23, 2021
1 parent 6b3040a commit 8fb4b5e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.3', '7.4', '8.0']
php-version: ['7.2', '7.3', '7.4', '8.0']
stability: [prefer-lowest, prefer-stable]
include:
- php-version: '8.1'
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
- name: Execute tests
run: ./vendor/bin/phpunit --verbose
run: ./vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^7.3|^8.0",
"php": "^7.2|^8.0",
"nicebooks/isbn": "^0.2.91",
"spatie/url": "^1.0|^2.0",
"symfony/polyfill-php74": "^1.23",
Expand All @@ -24,7 +24,7 @@
"require-dev": {
"fakerphp/faker": "^1.14",
"phpstan/phpstan": "^0.12.88",
"phpunit/phpunit": "^8|^9",
"phpunit/phpunit": "^8.5.8|^9.3.3",
"realodix/php-cs-fixer-config": "^3.0"
},
"autoload": {
Expand Down
25 changes: 11 additions & 14 deletions phpunit.xml.dist
@@ -1,16 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
colors="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Relodix Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<phpunit colors="true"
verbose="true"
>
<testsuites>
<testsuite name="Realodix Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="memory_limit" value="2048M" />
</php>
</phpunit>
2 changes: 1 addition & 1 deletion readme.md
@@ -1,6 +1,6 @@
<h1>Realodix PHP Utility</h1>

![PHPVersion](https://img.shields.io/badge/PHP-^7.3|^8-777BB4.svg?style=flat-square)
![PHPVersion](https://img.shields.io/badge/PHP-^7.2|^8-777BB4.svg?style=flat-square)
[![Tests](https://github.com/realodix/php-utility/actions/workflows/tests.yml/badge.svg)](https://github.com/realodix/php-utility/actions/workflows/tests.yml)
[![GitHub license](https://img.shields.io/github/license/realodix/php-utility)](/LICENSE)

Expand Down

0 comments on commit 8fb4b5e

Please sign in to comment.