Annotation of embedaddon/php/ext/sqlite/tests/sqlite_spl_003.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: sqlite-spl: Exception
        !             3: --SKIPIF--
        !             4: <?php # vim:ft=php
        !             5: if (!extension_loaded("sqlite")) print "skip"; 
        !             6: if (!extension_loaded("spl")) print "skip SPL is not present"; 
        !             7: ?>
        !             8: --FILE--
        !             9: <?php
        !            10: 
        !            11: try
        !            12: {
        !            13:        $db = sqlite_factory();
        !            14: }
        !            15: catch(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--
        !            27: GOOD
        !            28: ===DONE===

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