You are here

public function DefinitionTest::testSetGetFile in Zircon Profile 8

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

@covers Symfony\Component\DependencyInjection\Definition::setFile @covers Symfony\Component\DependencyInjection\Definition::getFile

File

vendor/symfony/dependency-injection/Tests/DefinitionTest.php, line 123

Class

DefinitionTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testSetGetFile() {
  $def = new Definition('stdClass');
  $this
    ->assertSame($def, $def
    ->setFile('foo'), '->setFile() implements a fluent interface');
  $this
    ->assertEquals('foo', $def
    ->getFile(), '->getFile() returns the file to include');
}