|
16 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
17 | 17 | use Symfony\Component\DependencyInjection\Reference; |
18 | 18 | use Symfony\Component\DependencyInjection\Tests\Fixtures\CaseSensitiveClass; |
19 | | -use Symfony\Component\DependencyInjection\Tests\Fixtures\FactoryDummy; |
| 19 | +use Symfony\Component\DependencyInjection\Tests\Fixtures\FactoryDummyWithoutReturnTypes; |
20 | 20 | use Symfony\Component\DependencyInjection\Tests\Fixtures\NamedArgumentsDummy; |
21 | 21 | use Symfony\Component\DependencyInjection\Tests\Fixtures\SimilarArgumentsDummy; |
22 | 22 | use Symfony\Component\DependencyInjection\Tests\Fixtures\TestDefinition1; |
@@ -119,16 +119,16 @@ public function testArgumentNotFound() |
119 | 119 |
|
120 | 120 | /** |
121 | 121 | * @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException |
122 | | - * @expectedExceptionMessage Invalid service "Symfony\Component\DependencyInjection\Tests\Fixtures\TestDefinition1": method "Symfony\Component\DependencyInjection\Tests\Fixtures\FactoryDummy::createTestDefinition1()" has no argument named "$notFound". Check your service definition. |
| 122 | + * @expectedExceptionMessage Invalid service "Symfony\Component\DependencyInjection\Tests\Fixtures\TestDefinition1": method "Symfony\Component\DependencyInjection\Tests\Fixtures\FactoryDummyWithoutReturnTypes::createTestDefinition1()" has no argument named "$notFound". Check your service definition. |
123 | 123 | */ |
124 | 124 | public function testCorrectMethodReportedInException() |
125 | 125 | { |
126 | 126 | $container = new ContainerBuilder(); |
127 | 127 |
|
128 | | - $container->register(FactoryDummy::class, FactoryDummy::class); |
| 128 | + $container->register(FactoryDummyWithoutReturnTypes::class, FactoryDummyWithoutReturnTypes::class); |
129 | 129 |
|
130 | 130 | $definition = $container->register(TestDefinition1::class, TestDefinition1::class); |
131 | | - $definition->setFactory(array(FactoryDummy::class, 'createTestDefinition1')); |
| 131 | + $definition->setFactory(array(FactoryDummyWithoutReturnTypes::class, 'createTestDefinition1')); |
132 | 132 | $definition->setArguments(array('$notFound' => '123')); |
133 | 133 |
|
134 | 134 | $pass = new ResolveNamedArgumentsPass(); |
|
0 commit comments