Ejemplo n.º 1
0
 /**
  * @expectedException Facula\Unit\Formated\Base\Exception\Mapper\MapAlreadyAssigned
  */
 public function testReAssignToPreDefinedMap()
 {
     $std = new stdClass();
     $preDefinedMap = array(Consts::TAG_MAP_SUBS => array('*' => array(Consts::TAG_MAP_SUBS => array(Consts::TAG_WILDCARD => array(Consts::TAG_MAP_SUBS => array('*' => array(Consts::TAG_MAP_SUBS => array(), Consts::TAG_MAP_TAGLENGTHS => array(), Consts::TAG_MAP_HANDLER => 'TAG_DATA_FIELD', Consts::TAG_MAP_CHECKS => array())), Consts::TAG_MAP_TAGLENGTHS => array(1 => 1), Consts::TAG_MAP_HANDLER => null, Consts::TAG_MAP_CHECKS => array('*' => true))), Consts::TAG_MAP_TAGLENGTHS => array(), Consts::TAG_MAP_HANDLER => null, Consts::TAG_MAP_CHECKS => array())), Consts::TAG_MAP_TAGLENGTHS => array(1 => 1), Consts::TAG_MAP_HANDLER => null, Consts::TAG_MAP_CHECKS => array('*' => true));
     $d = Dummy::get($preDefinedMap);
     $d->tryoutInsertToMap(array('*', '*'), $std);
 }
Ejemplo n.º 2
0
 /**
  * @expectedException Facula\Unit\Formated\Base\Exception\Mapper\MapItemNotFound
  */
 public function testNotExistedItem()
 {
     $map = array();
     $d = Dummy::get($map);
     $d->tryoutLocateInMap(array('${', '}(', ')'));
 }