Skip to content

Commit 6a5ac51

Browse files
committed
Enable phpstan-phpunit
1 parent 8ae1ca9 commit 6a5ac51

File tree

3 files changed

+55
-3
lines changed

3 files changed

+55
-3
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"friendsofphp/php-cs-fixer": "^3.85",
2323
"phpstan/extension-installer": "^1.4",
2424
"phpstan/phpstan": "^2.1",
25+
"phpstan/phpstan-phpunit": "^2.0",
2526
"phpunit/phpunit": "^12.3",
2627
"ruudk/readme-examples-sync-hook": "^1.0",
2728
"shipmonk/composer-dependency-analyser": "^1.8",

composer.lock

Lines changed: 54 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/GroupTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function testConstructorWithNestedGroups() : void
4747
$group = new Group($lines);
4848

4949
self::assertSame($lines, $group->lines);
50-
self::assertInstanceOf(Group::class, $group->lines[1]);
5150
}
5251

5352
public function testConstructorWithGenerator() : void
@@ -160,7 +159,6 @@ public function testComplexNestedStructure() : void
160159
self::assertFalse($outerGroup->isEmpty());
161160

162161
$middleGroupFromOuter = $outerGroup->lines[1];
163-
self::assertInstanceOf(Group::class, $middleGroupFromOuter);
164162
self::assertSame(0, $middleGroupFromOuter->indention);
165163
self::assertCount(2, $middleGroupFromOuter->lines);
166164

0 commit comments

Comments
 (0)