xref: /PHP-5.6/ext/pdo/tests/pdo_036.phpt (revision e6bde1f8)
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('pdostatement');
9$x = $instance->newInstance();
10var_dump($x);
11
12$instance = new reflectionclass('pdorow');
13$x = $instance->newInstance();
14var_dump($x);
15
16?>
17--EXPECTF--
18object(PDOStatement)#%d (1) {
19  [%u|b%"queryString"]=>
20  NULL
21}
22
23Fatal error: PDORow::__construct(): You should not create a PDOStatement manually in %spdo_036.php on line %d
24