Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to support PHP 8.2. #12

Merged
merged 1 commit into from
Jul 5, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions .coveralls.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PHP Composer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPCS
run: composer run-script lint
- name: Run PHPUnit
run: composer run-script test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/coverage/
/vendor/
clover.xml
composer.lock
.phpunit.result.cache
27 changes: 0 additions & 27 deletions .scrutinizer.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Chadicus Test Helpers

[![Build Status](https://travis-ci.org/chadicus/test-helpers.svg?branch=master)](https://travis-ci.org/chadicus/test-helpers)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/chadicus/test-helpers/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/chadicus/test-helpers/?branch=master)
[![Code Coverage](https://coveralls.io/repos/github/chadicus/test-helpers/badge.svg?branch=master)](https://coveralls.io/github/chadicus/test-helpers?branch=master)

[![Latest Stable Version](https://poser.pugx.org/chadicus/test-helpers/v/stable)](https://packagist.org/packages/chadicus/test-helpers)
[![Latest Unstable Version](https://poser.pugx.org/chadicus/test-helpers/v/unstable)](https://packagist.org/packages/chadicus/test-helpers)
[![License](https://poser.pugx.org/chadicus/test-helpers/license)](https://packagist.org/packages/chadicus/test-helpers)
Expand All @@ -14,7 +10,7 @@

## Requirements

Test Helpers requires PHP 5.6 (or later).
Test Helpers requires PHP 7.3 (or later).

## Composer
To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on
Expand All @@ -40,8 +36,8 @@ With a checkout of the code get [Composer](http://getcomposer.org) in your PATH

```sh
composer install
./vendor/bin/phpunit
./vendor/bin/phpcs --standard=./vendor/chadicus/coding-standard/Chadicus -n src
composer run test
composer run lint
```
# \Chadicus\FunctionRegistry

Expand Down
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
],
"license": "MIT",
"require": {
"php": "^5.6 || ^7.0"
"php": "^7.3 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^5.5",
"chadicus/coding-standard": "^1.1",
"satooshi/php-coveralls": "^1.0"
"phpunit/phpunit": "^9.3",
"chadicus/coding-standard": "^2"
},
"autoload": {
"psr-4": { "Chadicus\\": "src" }
},
"scripts": {
"lint": "vendor/bin/phpcs",
"test": "vendor/bin/phpunit"
}
}