public function DefinitionTest::testArguments in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/DefinitionTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionTest::testArguments()
@covers Symfony\Component\DependencyInjection\Definition::setArguments @covers Symfony\Component\DependencyInjection\Definition::getArguments @covers Symfony\Component\DependencyInjection\Definition::addArgument
File
- vendor/
symfony/ dependency-injection/ Tests/ DefinitionTest.php, line 81
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testArguments() {
$def = new Definition('stdClass');
$this
->assertSame($def, $def
->setArguments(array(
'foo',
)), '->setArguments() implements a fluent interface');
$this
->assertEquals(array(
'foo',
), $def
->getArguments(), '->getArguments() returns the arguments');
$this
->assertSame($def, $def
->addArgument('bar'), '->addArgument() implements a fluent interface');
$this
->assertEquals(array(
'foo',
'bar',
), $def
->getArguments(), '->addArgument() adds an argument');
}