Changeset 59
- Timestamp:
- 11/29/06 23:45:31 (2 years ago)
- Files:
-
- trunk/XJConf/definitions/AttributeDefinition.php (modified) (2 diffs)
- trunk/tests/definitions/AttributeDefinitionTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/definitions/AttributeDefinition.php
r50 r59 8 8 XJConfLoader::load('converters.factories.ValueConverterFactoryChain', 9 9 'definitions.Definition', 10 'exceptions.InvalidTagDefinitionException', 10 11 'exceptions.MissingAttributeException', 11 12 'exceptions.XJConfException', … … 76 77 { 77 78 if (null == $name || strlen($name) == 0) { 78 throw new XJConfException('TagDefinition needs a name.');79 throw new InvalidTagDefinitionException('AttributeDefinition needs a name.'); 79 80 } 80 81 trunk/tests/definitions/AttributeDefinitionTestCase.php
r50 r59 54 54 $this->assertEqual($this->attributeDefinition->getType(), 'int'); 55 55 56 $this->expectException(' XJConfException');56 $this->expectException('InvalidTagDefinitionException'); 57 57 $this->attributeDefinition->__construct(''); 58 58 }
