Skip to content

Commit d085ac8

Browse files
committed
bump package
1 parent bd08c3e commit d085ac8

32 files changed

+201
-125
lines changed

.github/workflows/phpunit.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: phpunit
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php: ["8.4", "8.3", "8.2", "8.1", "8.0", "7.4"]
13+
dependency-version: ["prefer-lowest", "prefer-stable"]
14+
exclude:
15+
- php: "8.4"
16+
dependency-version: "prefer-lowest"
17+
- php: "8.3"
18+
dependency-version: "prefer-lowest"
19+
- php: "8.2"
20+
dependency-version: "prefer-lowest"
21+
- php: "8.1"
22+
dependency-version: "prefer-lowest"
23+
24+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
extensions: dom, curl, libxml, mbstring, zip
33+
tools: composer:v2
34+
35+
- run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
36+
37+
- run: vendor/bin/phpunit

.github/workflows/pint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: pint
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
style:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: 8.4
17+
extensions: dom, curl, libxml, mbstring, zip
18+
tools: composer:v2
19+
20+
- run: composer install --prefer-dist --no-interaction
21+
22+
- run: vendor/bin/pint --test

.github/workflows/run-tests.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.styleci.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Offset Earth](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-green?style=for-the-badge)](https://forest.astrotomic.info)
66
[![Larabelles](https://img.shields.io/badge/Larabelles-%F0%9F%A6%84-lightpink?style=for-the-badge)](https://larabelles.com)
77

8-
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Astrotomic/phpunit-assertions/run-tests?style=flat-square&logoColor=white&logo=github&label=Tests)](https://github.com/Astrotomic/phpunit-assertions/actions?query=workflow%3Apest)
8+
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Astrotomic/phpunit-assertions/phpunit.yml?style=flat-square&logoColor=white&logo=github&label=Tests)](https://github.com/Astrotomic/phpunit-assertions/actions?query=workflow%3Aphpunit)
99
[![Total Downloads](https://img.shields.io/packagist/dt/astrotomic/phpunit-assertions.svg?label=Downloads&style=flat-square)](https://packagist.org/packages/astrotomic/phpunit-assertions)
1010
[![Trees](https://img.shields.io/ecologi/trees/astrotomic?style=flat-square)](https://forest.astrotomic.info)
1111
[![Carbon](https://img.shields.io/ecologi/carbon/astrotomic?style=flat-square)](https://forest.astrotomic.info)
@@ -195,4 +195,4 @@ This will prevent any method name conflicts with core, your custom or other trai
195195
'<p>Price: <code>{{ number_format($price, 2) }} €</code></p>',
196196
['price' => 99.99]
197197
);
198-
```
198+
```

composer.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,29 @@
1717
"homepage": "https://github.com/Astrotomic/phpunit-assertions",
1818
"require": {
1919
"php": "^7.4 || ^8.0",
20-
"phpunit/phpunit": "^9.1 || ^10.0"
20+
"phpunit/phpunit": "^9.1 || ^10.0 || ^11.0"
2121
},
2222
"require-dev": {
2323
"astrotomic/iso639": "^1.0",
24-
"egulias/email-validator": "^2.1 || ^3.0",
24+
"egulias/email-validator": "^2.1 || ^3.0 || ^4.0",
2525
"gajus/dindent": "^2.0",
26-
"giggsey/libphonenumber-for-php": "^8.12",
27-
"hashids/hashids": "^4.0",
28-
"league/iso3166": "^2.1 || ^3.0",
29-
"orchestra/testbench": "^6.0 || ^7.0",
26+
"giggsey/libphonenumber-for-php": "^8.12 || ^9.0",
27+
"hashids/hashids": "^4.0 || ^5.0",
28+
"laravel/pint": "^1.22",
29+
"league/iso3166": "^2.1 || ^3.0 || ^4.0",
30+
"orchestra/testbench": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
3031
"ramsey/uuid": "^4.0",
31-
"vinkla/hashids": "^9.0 || ^10.0"
32+
"vinkla/hashids": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0"
3233
},
3334
"suggest": {
3435
"astrotomic/iso639": "\\Astrotomic\\PhpunitAssertions\\LanguageAssertions (^1.0)",
35-
"egulias/email-validator": "\\Astrotomic\\PhpunitAssertions\\EmailAssertions (^2.1 || ^3.0)",
36+
"egulias/email-validator": "\\Astrotomic\\PhpunitAssertions\\EmailAssertions (^2.1 || ^3.0 || ^4.0)",
3637
"gajus/dindent": "\\Astrotomic\\PhpunitAssertions\\Laravel\\BladeAssertions (^2.0)",
37-
"giggsey/libphonenumber-for-php": "\\Astrotomic\\PhpunitAssertions\\PhoneNumberAssertions (^8.12)",
38-
"hashids/hashids": "\\Astrotomic\\PhpunitAssertions\\HashidAssertions (^4.0)",
39-
"league/iso3166": "\\Astrotomic\\PhpunitAssertions\\CountryAssertions (^2.1 || ^3.0)",
38+
"giggsey/libphonenumber-for-php": "\\Astrotomic\\PhpunitAssertions\\PhoneNumberAssertions (^8.12 || ^9.0)",
39+
"hashids/hashids": "\\Astrotomic\\PhpunitAssertions\\HashidAssertions (^4.0 || ^5.0)",
40+
"league/iso3166": "\\Astrotomic\\PhpunitAssertions\\CountryAssertions (^2.1 || ^3.0 || ^4.0)",
4041
"ramsey/uuid": "\\Astrotomic\\PhpunitAssertions\\UuidAssertions (^4.0)",
41-
"vinkla/hashids": "\\Astrotomic\\PhpunitAssertions\\Laravel\\HashidAssertions (^9.0)"
42+
"vinkla/hashids": "\\Astrotomic\\PhpunitAssertions\\Laravel\\HashidAssertions (^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0)"
4243
},
4344
"minimum-stability": "dev",
4445
"prefer-stable": true,
@@ -61,7 +62,9 @@
6162
"@composer normalize --ansi --no-interaction --quiet",
6263
"@composer thanks --ansi --no-interaction --quiet"
6364
],
65+
"fix": "@php vendor/bin/pint",
6466
"normalize": "echo 'composer global require ergebnis/composer-normalize'",
67+
"test": "@php vendor/bin/phpunit",
6568
"thanks": "echo 'composer global require symfony/thanks'"
6669
}
6770
}

src/EmailAssertions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function assertValidLoose($actual): void
1717
public static function assertValidStrict($actual): void
1818
{
1919
PHPUnit::assertIsString($actual);
20-
PHPUnit::assertTrue((new EmailValidator())->isValid($actual, new RFCValidation()));
20+
PHPUnit::assertTrue((new EmailValidator)->isValid($actual, new RFCValidation));
2121
}
2222

2323
public static function assertDomain(string $expected, $actual): void

src/HashidAssertions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ public static function assertHashId(
4141
int $minHashLength = 0,
4242
?string $alphabet = null
4343
): void {
44-
static::assertHashIds($actual, 1, $salt, $minHashLength, $alphabet);
44+
self::assertHashIds($actual, 1, $salt, $minHashLength, $alphabet);
4545
}
4646
}

src/LanguageAssertions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ final class LanguageAssertions
1010
public static function assertName($actual): void
1111
{
1212
PHPUnit::assertIsString($actual);
13-
$language = (new ISO639())->name($actual);
13+
$language = (new ISO639)->name($actual);
1414
PHPUnit::assertIsArray($language);
1515
}
1616

src/Laravel/BladeAssertions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ final class BladeAssertions
1111
{
1212
public static function assertRenderEquals(string $expected, string $template, array $data = []): void
1313
{
14-
$indenter = new Indenter();
14+
$indenter = new Indenter;
1515

1616
PHPUnit::assertSame(
1717
$indenter->indent($expected),
18-
$indenter->indent((string) static::render($template, $data))
18+
$indenter->indent((string) self::render($template, $data))
1919
);
2020
}
2121

0 commit comments

Comments
 (0)