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

1.1     ! misho       1: --TEST--
        !             2: ReflectionClass::hasConstant
        !             3: --SKIPIF--
        !             4: <?php extension_loaded('reflection') or die('skip'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: class Foo {
        !             8:        const c1 = 1;
        !             9: }
        !            10: $class = new ReflectionClass("Foo");
        !            11: var_dump($class->hasConstant("c1"));
        !            12: var_dump($class->hasConstant("c2"));
        !            13: ?>
        !            14: --EXPECT--     
        !            15: bool(true)
        !            16: bool(false)

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