Annotation of embedaddon/php/ext/mysqli/tests/mysqli_class_mysqli_driver_reflection.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Interface of the class mysqli_driver - Reflection
                      3: --SKIPIF--
                      4: <?php
                      5: require_once('skipif.inc');
                      6: require_once('skipifemb.inc');
                      7: require_once('connect.inc');
                      8: if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5))
                      9:        die("skip Reflection not available before PHP 5 (found PHP $tmp)");
                     10: 
                     11: /*
                     12: Let's not deal with cross-version issues in the EXPECTF/UEXPECTF.
                     13: Most of the things which we test are covered by mysqli_class_*_interface.phpt.
                     14: Those tests go into the details and are aimed to be a development tool, no more.
                     15: */
                     16: if (!$IS_MYSQLND)
                     17:        die("skip Test has been written for the latest version of mysqlnd only");
                     18: ?>
                     19: --FILE--
                     20: <?php
                     21:        require_once('reflection_tools.inc');
                     22:        $class = new ReflectionClass('mysqli_driver');
                     23:        inspectClass($class);
                     24:        print "done!";
                     25: ?>
                     26: --EXPECTF--
                     27: Inspecting class 'mysqli_driver'
                     28: isInternal: yes
                     29: isUserDefined: no
                     30: isInstantiable: yes
                     31: isInterface: no
                     32: isAbstract: no
                     33: isFinal: yes
                     34: isIteratable: no
                     35: Modifiers: '%d'
                     36: Parent Class: ''
                     37: Extension: 'mysqli'
                     38: 
                     39: Inspecting property 'client_info'
                     40: isPublic: yes
                     41: isPrivate: no
                     42: isProtected: no
                     43: isStatic: no
                     44: isDefault: yes
                     45: Modifiers: 256
                     46: 
                     47: Inspecting property 'client_version'
                     48: isPublic: yes
                     49: isPrivate: no
                     50: isProtected: no
                     51: isStatic: no
                     52: isDefault: yes
                     53: Modifiers: 256
                     54: 
                     55: Inspecting property 'driver_version'
                     56: isPublic: yes
                     57: isPrivate: no
                     58: isProtected: no
                     59: isStatic: no
                     60: isDefault: yes
                     61: Modifiers: 256
                     62: 
                     63: Inspecting property 'embedded'
                     64: isPublic: yes
                     65: isPrivate: no
                     66: isProtected: no
                     67: isStatic: no
                     68: isDefault: yes
                     69: Modifiers: 256
                     70: 
                     71: Inspecting property 'reconnect'
                     72: isPublic: yes
                     73: isPrivate: no
                     74: isProtected: no
                     75: isStatic: no
                     76: isDefault: yes
                     77: Modifiers: 256
                     78: 
                     79: Inspecting property 'report_mode'
                     80: isPublic: yes
                     81: isPrivate: no
                     82: isProtected: no
                     83: isStatic: no
                     84: isDefault: yes
                     85: Modifiers: 256
                     86: Default property 'client_info'
                     87: Default property 'client_version'
                     88: Default property 'driver_version'
                     89: Default property 'embedded'
                     90: Default property 'reconnect'
                     91: Default property 'report_mode'
                     92: done!

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