Annotation of embedaddon/php/ext/pdo/tests/pdo_035.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: PDO Common: PDORow + get_parent_class()
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (!extension_loaded('pdo_sqlite')) die ("skip Need PDO_SQlite support");
        !             6: ?>
        !             7: --FILE--
        !             8: <?php
        !             9: $db = new PDO('sqlite::memory:');
        !            10: $db->exec('CREATE TABLE test (id int)');
        !            11: $db->exec('INSERT INTO test VALUES (23)');
        !            12: 
        !            13: $stmt = $db->prepare('SELECT id FROM test');
        !            14: $stmt->execute();
        !            15: $result = $stmt->fetch(PDO::FETCH_LAZY);
        !            16: 
        !            17: echo get_class($result), "\n";
        !            18: var_dump(get_parent_class($result));
        !            19: ?>
        !            20: --EXPECT--
        !            21: PDORow
        !            22: bool(false)

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