Skip to content

Commit aa36aee

Browse files
committed
Refactor of NeonTest (accept Broker as constructor argument, change assertion after new typeSpecifier)
1 parent a9e4462 commit aa36aee

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/Symfony/NeonTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testExtensionNeon(): void
4747

4848
self::assertCount(6, $container->findByTag('phpstan.rules.rule'));
4949
self::assertCount(11, $container->findByTag('phpstan.broker.dynamicMethodReturnTypeExtension'));
50-
self::assertCount(5, $container->findByTag('phpstan.typeSpecifier.methodTypeSpecifyingExtension'));
50+
self::assertCount(6, $container->findByTag('phpstan.typeSpecifier.methodTypeSpecifyingExtension'));
5151
self::assertInstanceOf(ServiceMap::class, $container->getByType(ServiceMap::class));
5252
}
5353

tests/Symfony/config.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ parameters:
44

55
services:
66
- PhpParser\PrettyPrinter\Standard
7+
8+
-
9+
class: PHPStan\DependencyInjection\Container
10+
factory: PHPStan\DependencyInjection\Nette\NetteContainer
11+
12+
broker:
13+
class: PHPStan\Broker\Broker
14+
factory: @brokerFactory::create
15+
16+
brokerFactory:
17+
class: PHPStan\Broker\BrokerFactory

0 commit comments

Comments
 (0)