public function ContainerTest::testSet in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ContainerTest::testSet()
- 8 core/tests/Drupal/Tests/Core/DependencyInjection/ContainerTest.php \Drupal\Tests\Core\DependencyInjection\ContainerTest::testSet()
- 8 core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php \Drupal\Tests\Component\DependencyInjection\ContainerTest::testSet()
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ContainerTest::testSet()
@covers Symfony\Component\DependencyInjection\Container::set
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerTest.php, line 155
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSet() {
$sc = new Container();
$sc
->set('foo', $foo = new \stdClass());
$this
->assertEquals($foo, $sc
->get('foo'), '->set() sets a service');
}