public function ReferenceTest::testConstructor in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ReferenceTest.php \Symfony\Component\DependencyInjection\Tests\ReferenceTest::testConstructor()
@covers Symfony\Component\DependencyInjection\Reference::__construct
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ReferenceTest.php, line 21
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testConstructor() {
$ref = new Reference('foo');
$this
->assertEquals('foo', (string) $ref, '__construct() sets the id of the reference, which is used for the __toString() method');
}