Skip to content

Commit 5ec3072

Browse files
Add test case to demonstrate there is no bug in this case
1 parent 4691767 commit 5ec3072

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tests/Functional/Fixtures/reported_problems.yml

+12
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ services:
1717
class: Matthias\SymfonyServiceDefinitionValidator\Tests\Functional\Fixtures\Validator
1818
factory_service: validator_builder
1919
factory_method: build
20+
21+
# Issue 11: https://github.com/matthiasnoback/symfony-service-definition-validator/issues/11
22+
# It is alright for the factory service to be private
23+
service_created_by_private_factory:
24+
class: stdClass
25+
factory_service: private_factory
26+
factory_method: create
27+
arguments:
28+
- required_argument
29+
private_factory:
30+
class: Matthias\SymfonyServiceDefinitionValidator\Tests\Functional\Fixtures\Factory
31+
private: true

0 commit comments

Comments
 (0)