1--TEST--
2sqlite-spl: Exception
3--SKIPIF--
4<?php # vim:ft=php
5if (!extension_loaded("sqlite")) print "skip";
6if (!extension_loaded("spl")) print "skip SPL is not present";
7?>
8--FILE--
9<?php
10
11try
12{
13	$db = sqlite_factory();
14}
15catch(SQLiteException $e)
16{
17	$parents = class_parents($e);
18	if (array_key_exists('RuntimeException', $parents))
19	{
20		echo "GOOD\n";
21	}
22}
23
24?>
25===DONE===
26--EXPECT--
27GOOD
28===DONE===
29