Annotation of embedaddon/php/ext/reflection/tests/017.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ReflectionClass::__toString() (constants)
                      3: --SKIPIF--
                      4: <?php extension_loaded('reflection') or die('skip'); ?>
                      5: --FILE--
                      6: <?php
                      7: class Foo {
                      8:        const test = "ok";
                      9: }
                     10: $class = new ReflectionClass("Foo");
                     11: echo $class;
                     12: ?>
                     13: --EXPECTF--    
                     14: Class [ <user> class Foo ] {
                     15:   @@ %s017.php 2-4
                     16: 
                     17:   - Constants [1] {
                     18:     Constant [ string test ] { ok }
                     19:   }
                     20: 
                     21:   - Static properties [0] {
                     22:   }
                     23: 
                     24:   - Static methods [0] {
                     25:   }
                     26: 
                     27:   - Properties [0] {
                     28:   }
                     29: 
                     30:   - Methods [0] {
                     31:   }
                     32: }
                     33: 

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