Changeset 59

Show
Ignore:
Timestamp:
11/29/06 23:45:31 (2 years ago)
Author:
mikey
Message:

throw InvalidTagDefinitionException? instead of XJConfException

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/definitions/AttributeDefinition.php

    r50 r59  
    88XJConfLoader::load('converters.factories.ValueConverterFactoryChain', 
    99                   'definitions.Definition', 
     10                   'exceptions.InvalidTagDefinitionException', 
    1011                   'exceptions.MissingAttributeException', 
    1112                   'exceptions.XJConfException', 
     
    7677        { 
    7778                if (null == $name || strlen($name) == 0) { 
    78                         throw new XJConfException('TagDefinition needs a name.'); 
     79                        throw new InvalidTagDefinitionException('AttributeDefinition needs a name.'); 
    7980                } 
    8081 
  • trunk/tests/definitions/AttributeDefinitionTestCase.php

    r50 r59  
    5454        $this->assertEqual($this->attributeDefinition->getType(), 'int'); 
    5555         
    56         $this->expectException('XJConfException'); 
     56        $this->expectException('InvalidTagDefinitionException'); 
    5757        $this->attributeDefinition->__construct(''); 
    5858    }