You are here

public function ParameterTest::testConstructor in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterTest.php \Symfony\Component\DependencyInjection\Tests\ParameterTest::testConstructor()

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

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterTest.php, line 21

Class

ParameterTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testConstructor() {
  $ref = new Parameter('foo');
  $this
    ->assertEquals('foo', (string) $ref, '__construct() sets the id of the parameter, which is used for the __toString() method');
}