Skip to content

Commit c20a8b9

Browse files
committed
Fix tests
1 parent 3434613 commit c20a8b9

15 files changed

+184
-1361
lines changed

.github/workflows/code-quality.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Code Quality Checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
jobs:
11+
code-quality:
12+
uses: brightnucleus/.github/.github/workflows/reusable-code-quality.yml@main

.github/workflows/testing.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Testing
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
schedule:
10+
- cron: '17 1 * * *' # Run every day on a seemingly random time.
11+
12+
jobs:
13+
test:
14+
uses: brightnucleus/.github/.github/workflows/reusable-testing.yml@main
15+
with:
16+
minimum-php: '8.0'

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
vendor/
1+
vendor/
2+
composer.lock

README.md

-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
# Bright Nucleus Invoker Component
22

3-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/brightnucleus/invoker/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/brightnucleus/invoker/?branch=master)
4-
[![Code Coverage](https://scrutinizer-ci.com/g/brightnucleus/invoker/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/brightnucleus/invoker/?branch=master)
5-
[![Build Status](https://scrutinizer-ci.com/g/brightnucleus/invoker/badges/build.png?b=master)](https://scrutinizer-ci.com/g/brightnucleus/invoker/build-status/master)
6-
[![Codacy Badge](https://api.codacy.com/project/badge/grade/50b6ac5694ae427280eba3efd91cc1ea)](https://www.codacy.com/app/BrightNucleus/invoker)
7-
[![Code Climate](https://codeclimate.com/github/brightnucleus/invoker/badges/gpa.svg)](https://codeclimate.com/github/brightnucleus/invoker)
8-
93
[![Latest Stable Version](https://poser.pugx.org/brightnucleus/invoker/v/stable)](https://packagist.org/packages/brightnucleus/invoker)
104
[![Total Downloads](https://poser.pugx.org/brightnucleus/invoker/downloads)](https://packagist.org/packages/brightnucleus/invoker)
11-
[![Latest Unstable Version](https://poser.pugx.org/brightnucleus/invoker/v/unstable)](https://packagist.org/packages/brightnucleus/invoker)
125
[![License](https://poser.pugx.org/brightnucleus/invoker/license)](https://packagist.org/packages/brightnucleus/invoker)
136

147
Function and method invoking traits that match named arguments in the right order.

composer.json

+24-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
"name": "brightnucleus/invoker",
33
"description": "Function and method invoking traits that match named arguments in the right order.",
44
"require-dev": {
5-
"phpunit/phpunit": "~4",
6-
"squizlabs/php_codesniffer": "~2.5"
5+
"malukenho/docheader": "^1",
6+
"yoast/phpunit-polyfills": "^3",
7+
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5 || ^10",
8+
"squizlabs/php_codesniffer": "^3",
9+
"php-parallel-lint/php-parallel-lint": "^1"
710
},
811
"license": "MIT",
912
"authors": [
@@ -13,11 +16,29 @@
1316
}
1417
],
1518
"require": {
16-
"brightnucleus/exceptions": ">=0.2"
19+
"php": ">=8.0",
20+
"brightnucleus/exceptions": ">=0.4"
1721
},
1822
"autoload": {
1923
"psr-4": {
2024
"BrightNucleus\\Invoker\\": "src/"
2125
}
26+
},
27+
"autoload-dev": {
28+
"psr-4": {
29+
"BrightNucleus\\Invoker\\Tests\\": "tests/"
30+
}
31+
},
32+
"scripts": {
33+
"check": [
34+
"@cs-check",
35+
"@test"
36+
],
37+
"upload-coverage": "vendor/bin/coveralls -v --coverage_clover clover.xml",
38+
"cs-check": "vendor/bin/phpcs -ps --colors",
39+
"cs-fix": "vendor/bin/phpcbf -ps --colors",
40+
"test": "vendor/bin/phpunit --colors",
41+
"test-coverage": "vendor/bin/phpunit --colors --coverage-clover clover.xml",
42+
"license-check": "vendor/bin/docheader --ansi check src/"
2243
}
2344
}

0 commit comments

Comments
 (0)