File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / sqlite / tests / sqlite_spl_003.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:02 2012 UTC (13 years, 9 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--TEST--
sqlite-spl: Exception
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded("sqlite")) print "skip"; 
if (!extension_loaded("spl")) print "skip SPL is not present"; 
?>
--FILE--
<?php

try
{
	$db = sqlite_factory();
}
catch(SQLiteException $e)
{
	$parents = class_parents($e);
	if (array_key_exists('RuntimeException', $parents))
	{
		echo "GOOD\n";
	}
}

?>
===DONE===
--EXPECT--
GOOD
===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>