public function DefinitionTest::testSetGetConfigurator

@covers Symfony\Component\DependencyInjection\Definition::setConfigurator @covers Symfony\Component\DependencyInjection\Definition::getConfigurator

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php, line 171

Class

DefinitionTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testSetGetConfigurator() {
  $def = new Definition('stdClass');
  $this
    ->assertSame($def, $def
    ->setConfigurator('foo'), '->setConfigurator() implements a fluent interface');
  $this
    ->assertEquals('foo', $def
    ->getConfigurator(), '->getConfigurator() returns the configurator');
}