Skip to content

Commit 188cc2c

Browse files
committed
Update test tools
1 parent a0ec054 commit 188cc2c

6 files changed

+13
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The MIT License (MIT). Please see [License File][link-licence] for more informat
185185
[ico-code-quality]: https://img.shields.io/scrutinizer/g/inspirum/arrayable-php.svg?style=flat-square
186186
[ico-packagist-stable]: https://img.shields.io/packagist/v/inspirum/arrayable.svg?style=flat-square&colorB=blue
187187
[ico-packagist-download]: https://img.shields.io/packagist/dt/inspirum/arrayable.svg?style=flat-square&colorB=blue
188-
[ico-phpstan]: https://img.shields.io/badge/style-level%209-brightgreen.svg?style=flat-square&label=phpstan
188+
[ico-phpstan]: https://img.shields.io/badge/style-level%2010-brightgreen.svg?style=flat-square&label=phpstan
189189

190190
[link-author]: https://github.com/inspirum
191191
[link-contributors]: https://github.com/inspirum/arrayable-php/contributors

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
},
2222
"require-dev": {
2323
"inspirum/coding-standard": "^1.6",
24-
"phpstan/phpstan": "^1.12",
25-
"phpunit/phpunit": "^10.5",
26-
"shipmonk/composer-dependency-analyser": "^1.7",
27-
"squizlabs/php_codesniffer": "^3.10"
24+
"phpstan/phpstan": "^2.0",
25+
"phpunit/phpunit": "^11.0",
26+
"shipmonk/composer-dependency-analyser": "^1.8",
27+
"squizlabs/php_codesniffer": "^3.11"
2828
},
2929
"autoload": {
3030
"psr-4": {
@@ -68,7 +68,7 @@
6868
"@phpcs"
6969
],
7070
"style:phpstan": [
71-
"@phpstan -l 9"
71+
"@phpstan"
7272
],
7373
"style:check": [
7474
"@style:phpcs",

phpstan.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
includes:
22
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
33
parameters:
4-
level: 9
4+
level: 10
55
paths:
66
- src
77
- tests

tests/BaseCollectionTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ final class BaseCollectionTest extends TestCase
2222
public function testJsonSerialize(array $data, string|Throwable $result): void
2323
{
2424
if ($result instanceof Throwable) {
25-
self::expectException($result::class);
26-
self::expectExceptionMessage($result->getMessage());
25+
$this->expectException($result::class);
26+
$this->expectExceptionMessage($result->getMessage());
2727
}
2828

2929
$items = array_map(fn (array $data): Arrayable => $this->createModel($data), $data);

tests/BaseModelTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ final class BaseModelTest extends TestCase
1919
public function testJsonSerialize(array $data, string|Throwable $result): void
2020
{
2121
if ($result instanceof Throwable) {
22-
self::expectException($result::class);
23-
self::expectExceptionMessage($result->getMessage());
22+
$this->expectException($result::class);
23+
$this->expectExceptionMessage($result->getMessage());
2424
}
2525

2626
$model = new class ($data) extends BaseModel {

tests/ConvertorTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ final class ConvertorTest extends TestCase
2424
public function testToArray(mixed $data, array|Throwable $result, ?int $limit = null): void
2525
{
2626
if ($result instanceof Throwable) {
27-
self::expectException($result::class);
28-
self::expectExceptionMessage($result->getMessage());
27+
$this->expectException($result::class);
28+
$this->expectExceptionMessage($result->getMessage());
2929
}
3030

3131
self::assertSame(!($result instanceof Throwable), Convertor::isArrayable($data));

0 commit comments

Comments
 (0)