Annotation of embedaddon/php/ext/reflection/tests/bug29986.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Reflection Bug #29986 (Class constants won't work with predefined constants when using ReflectionClass)
        !             3: --INI--
        !             4: precision=14
        !             5: --FILE--
        !             6: <?php
        !             7: class just_constants
        !             8: {
        !             9:     const BOOLEAN_CONSTANT = true;
        !            10:     const NULL_CONSTANT = null;
        !            11:     const STRING_CONSTANT = 'This is a string';
        !            12:     const INTEGER_CONSTANT = 1000;
        !            13:     const FLOAT_CONSTANT = 3.14159265;
        !            14: }
        !            15: 
        !            16: Reflection::export(new ReflectionClass('just_constants'));
        !            17: ?>
        !            18: --EXPECTF--
        !            19: Class [ <user> class just_constants ] {
        !            20:   @@ %s %d-%d
        !            21: 
        !            22:   - Constants [5] {
        !            23:     Constant [ boolean BOOLEAN_CONSTANT ] { 1 }
        !            24:     Constant [ null NULL_CONSTANT ] {  }
        !            25:     Constant [ string STRING_CONSTANT ] { This is a string }
        !            26:     Constant [ integer INTEGER_CONSTANT ] { 1000 }
        !            27:     Constant [ double FLOAT_CONSTANT ] { 3.14159265 }
        !            28:   }
        !            29: 
        !            30:   - Static properties [0] {
        !            31:   }
        !            32: 
        !            33:   - Static methods [0] {
        !            34:   }
        !            35: 
        !            36:   - Properties [0] {
        !            37:   }
        !            38: 
        !            39:   - Methods [0] {
        !            40:   }
        !            41: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>