Neos\Flow\Tests\Unit\ObjectManagement\Configuration\ConfigurationTest::passingAnEmptyArrayToSetArgumentsRemovesAllExistingArguments PHP Метод

passingAnEmptyArrayToSetArgumentsRemovesAllExistingArguments() публичный Метод

    public function passingAnEmptyArrayToSetArgumentsRemovesAllExistingArguments()
    {
        $someArguments = [1 => new Configuration\ConfigurationArgument(1, 'simple string'), 2 => new Configuration\ConfigurationArgument(2, 'another string')];
        $this->objectConfiguration->setArguments($someArguments);
        $this->assertEquals($someArguments, $this->objectConfiguration->getArguments(), 'The set arguments could not be retrieved again.');
        $this->objectConfiguration->setArguments([]);
        $this->assertEquals([], $this->objectConfiguration->getArguments(), 'The constructor arguments have not been cleared.');
    }