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