/**
  * test that you can't register an array type then a normal
  * type with the same name further down the array chain
  * i.e test[address] then test[address][city]
  * 
  * @expectedException phFormException
  */
 public function testRegisterArrayTypeThenNormalTypeAtDeeperLevel()
 {
     $collection = new phCompositeDataCollection();
     $element = new phSimpleTestElement();
     $nameInfo = new phNameInfo('test[address]');
     $collection->register($element, $nameInfo);
     $nameInfo = new phNameInfo('test[address][city]');
     $collection->register($element, $nameInfo);
 }