Skip to content

Add support of extra params to the throw_if and throw_unless functions #181

Add support of extra params to the throw_if and throw_unless functions

Add support of extra params to the throw_if and throw_unless functions #181

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer
extensions: tokenizer, xmlwriter, simplexml
- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress
- name: Run unit tests
run: vendor/bin/phpunit --testsuite Unit
- name: Run PHP Code Sniffer
run: composer run phpcs -- --runtime-set ignore_warnings_on_exit 1