xref: /PHP-5.4/ext/pdo/tests/pdo_036.phpt (revision 0295d0d1)
1--TEST--
2Testing PDORow and PDOStatement instances with Reflection
3--SKIPIF--
4<?php if (!extension_loaded('pdo')) die('skip'); ?>
5--FILE--
6<?php
7
8$instance = new reflectionclass('pdorow');
9$x = $instance->newInstance();
10var_dump($x);
11
12$instance = new reflectionclass('pdostatement');
13$x = $instance->newInstance();
14var_dump($x);
15
16?>
17--EXPECTF--
18object(PDORow)#%d (0) {
19}
20object(PDOStatement)#%d (1) {
21  [%u|b%"queryString"]=>
22  NULL
23}
24