10000 fix tests · symfony/symfony@6d46fd1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d46fd1

Browse files
committed
fix tests
1 parent d37eeab commit 6d46fd1

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -518,34 +518,6 @@ public function testIgnoreServiceWithClassNotExisting()
518518
$this->assertTrue($container->hasDefinition('bar'));
519519
}
520520

521-
/**
522-
* @expectedException \Symfony\Component\DependencyInjection\Exception\RuntimeException
523-
* @expectedExceptionMessage Cannot autowire argument 1 of the method "setNotAutowireable" for "Symfony\Component\DependencyInjection\Tests\Compiler\SetterInjectionNotARealClass" because the type-hinted class does not exist ("Class Symfony\Component\DependencyInjection\Tests\Compiler\NotARealClass does not exist").
524-
*/
525-
public function testSetterInjectionNotARealClassThrowsException()
526-
{
527-
$container = new ContainerBuilder();
528-
$container
529-
->register('setter_injection', SetterInjectionNotARealClass::class)
530-
->setAutowired(true)
531-
;
532-
533-
$pass = new AutowirePass();
534-
$pass->process($container);
535-
}
536-
537-
/**
538-
* @expectedException \Symfony\Component\DependencyInjection\Exception\RuntimeException
539-
* @expectedExceptionMessage Unable to autowire argument index 0 ($foo) of the method "setArgCannotAutowire" for the service "setter_injection". If this is an object, give it a type-hint. Otherwise, specify this argument's value explicitly.
540-
*/
541-
public function testSetterInjectionNoTypeHintThrowsException()
542-
{
543-
$container = new ContainerBuilder();
544-
$container
545-
->register('setter_injection', SetterInjectionNoTypeHint::class)
546-
->setAutowired(true);
547-
}
548-
549521
/**
550522
* @expectedException \Symfony\Component\DependencyInjection\Exception\RuntimeException
551523
* @expectedExceptionMessage Unable to autowire argument of type "Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface" for the service "setter_injection_collision". Multiple services exist for this interface (c1, c2).

0 commit comments

Comments
 (0)
0