Example #1
0
 /**
  * @test
  */
 public function passingAnEmptyArrayToSetArgumentsRemovesAllExistingArguments()
 {
     $someArguments = array(1 => new \TYPO3\FLOW3\Object\Configuration\ConfigurationArgument(1, 'simple string'), 2 => new \TYPO3\FLOW3\Object\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(array());
     $this->assertEquals(array(), $this->objectConfiguration->getArguments(), 'The constructor arguments have not been cleared.');
 }