xref: /PHP-5.3/ext/pdo_sqlite/tests/bug46542.phpt (revision eb190a2e)
1--TEST--
2Bug #46542 Extending PDO class with a __call() function
3--SKIPIF--
4<?php # vim:ft=php
5if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
6?>
7--FILE--
8<?php
9class A extends PDO
10{ function __call($m, $p) {print __CLASS__."::$m\n";} }
11
12$a = new A('sqlite:' . __DIR__ . '/dummy.db');
13
14$a->truc();
15$a->TRUC();
16
17?>
18--CLEAN--
19<?php
20unlink(__DIR__ . '/dummy.db');
21?>
22--EXPECT--
23A::truc
24A::TRUC
25