Skip to content

Commit

Permalink
chore(deps): update phpstan packages to v2 (major) (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Nov 11, 2024
1 parent 9ea3b0e commit cec7f78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"doctrine/coding-standard": "^12.0",
"infection/infection": "^0.29.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.3",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.1",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^11.0"
},
"autoload": {
Expand Down
7 changes: 7 additions & 0 deletions tests/Builder/EnumBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use SimPod\GraphQLUtils\Builder\EnumBuilder;
use SimPod\GraphQLUtils\Exception\InvalidArgument;

use function assert;
use function is_array;

final class EnumBuilderTest extends TestCase
{
public function testCreate(): void
Expand All @@ -31,16 +34,20 @@ public function testCreate(): void
self::assertCount(4, $values);

self::assertArrayHasKey('EnumName', $values);
assert(is_array($values['EnumName']));
self::assertSame('Value1', $values['EnumName']['value']);

self::assertArrayHasKey('Value2', $values);
assert(is_array($values['Value2']));
self::assertSame('Value2', $values['Value2']['value']);
self::assertSame('Value 2 Description', $values['Value2']['description']);

self::assertArrayHasKey('Numeric', $values);
assert(is_array($values['Numeric']));
self::assertSame(0, $values['Numeric']['value']);

self::assertArrayHasKey('Deprec', $values);
assert(is_array($values['Deprec']));
self::assertSame('Deprecated', $values['Deprec']['deprecationReason']);
}

Expand Down

0 comments on commit cec7f78

Please sign in to comment.