You are here

public function ReferenceTest::testConstructor in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/ReferenceTest.php \Symfony\Component\DependencyInjection\Tests\ReferenceTest::testConstructor()

@covers Symfony\Component\DependencyInjection\Reference::__construct

File

vendor/symfony/dependency-injection/Tests/ReferenceTest.php, line 21

Class

ReferenceTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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');
}