Changeset 91

Show
Ignore:
Timestamp:
02/18/07 15:47:10 (2 years ago)
Author:
schst
Message:

Added new meta-type "xjconf:auto-primitive"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/converters/factories/ValueConverterFactoryChain.php

    r87 r91  
    99 */ 
    1010XJConfLoader::load('converters.factories.ValueConverterFactory', 
     11                   'converters.factories.AutoPrimitiveValueConverterFactory', 
    1112                   'converters.factories.PrimitiveValueConverterFactory', 
    1213                   'converters.factories.ArrayValueConverterFactory', 
     
    5556            } 
    5657        } 
    57  
    5858        throw new ValueConversionException('Could not find ValueConverterFactory for definition of tag <' . $def->getName() . '> with type "' . $def->getType() . '". If this type is a class it probably has not been loaded.'); 
    5959    } 
     
    6262// initialize the ValueConverterFactoryChain 
    6363ValueConverterFactoryChain::push(new PrimitiveValueConverterFactory()); 
     64ValueConverterFactoryChain::push(new AutoPrimitiveValueConverterFactory()); 
    6465ValueConverterFactoryChain::push(new ArrayValueConverterFactory()); 
    6566ValueConverterFactoryChain::push(new StaticClassValueConverterFactory()); 
  • trunk/tests/runIntegration.php

    r89 r91  
    3737        $test->addTestFile(TEST_CWD . '/integration/TestEmptyConstructorTestCase.php'); 
    3838        $test->addTestFile(TEST_CWD . '/integration/TestInterfacesTestCase.php'); 
     39        $test->addTestFile(TEST_CWD . '/integration/TestAutoPrimitivesTestCase.php'); 
    3940        $test->addTestFile(TEST_CWD . '/integration/TestPrimitivesTestCase.php'); 
    4041        $test->addTestFile(TEST_CWD . '/integration/TestPrimitivesFactoryTestCase.php');