1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00
ext-pq/tests/lob004.phpt

30 lines
427 B
Plaintext
Raw Normal View History

2013-02-22 23:15:45 +01:00
--TEST--
large object import/export
--SKIPIF--
<?php include "_skipif.inc"; ?>
2015-07-30 17:37:28 +02:00
--CLEAN--
<?php unlink("lob004.tmp"); ?>
2013-02-22 23:15:45 +01:00
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$t = new pq\Transaction($c);
$oid = $t->importLOB(__FILE__);
var_dump($oid);
$t->exportLOB($oid, "lob004.tmp");
2015-07-30 17:37:28 +02:00
var_dump(md5_file(__FILE__)===md5_file("lob004.tmp"));
2013-02-22 23:15:45 +01:00
?>
DONE
--EXPECTF--
Test
int(%d)
bool(true)
DONE