xref: /PHP-5.6/ext/pdo/tests/pdo_037.phpt (revision 13b692e4)
1--TEST--
2Crash when calling a method of a class that inherits PDOStatement
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo')) die('skip');
6?>
7--FILE--
8<?php
9
10class MyStatement extends PDOStatement
11{
12}
13
14$obj = new MyStatement;
15var_dump($obj->foo());
16
17?>
18--EXPECTF--
19Fatal error: Call to undefined method MyStatement::foo() in %s on line %d
20