Support PHPUnit 12 by avoiding removed methods getMockForAbstractClass() and addMethods() #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Check Coding Standards" | |
on: | |
pull_request: | |
jobs: | |
coding-standards: | |
name: "Check Coding Standards" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.4" | |
tools: composer:v2, cs2pr | |
- name: Install dependencies | |
run: composer require squizlabs/php_codesniffer --no-interaction --no-progress | |
- name: "Run phpcs" | |
run: vendor/bin/phpcs -q --standard=PSR2 classes/ tests/ --report=checkstyle | cs2pr |