diff options
Diffstat (limited to 'ext/sybase_ct/tests/test_connection_caching.phpt')
-rw-r--r-- | ext/sybase_ct/tests/test_connection_caching.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/sybase_ct/tests/test_connection_caching.phpt b/ext/sybase_ct/tests/test_connection_caching.phpt new file mode 100644 index 0000000..d59aede --- /dev/null +++ b/ext/sybase_ct/tests/test_connection_caching.phpt @@ -0,0 +1,26 @@ +--TEST-- +Sybase-CT connection caching +--SKIPIF-- +<?php require('skipif.inc'); ?> +--FILE-- +<?php +/* This file is part of PHP test framework for ext/sybase_ct + * + * $Id$ + */ + + require('test.inc'); + + $db1= sybase_connect_ex(); + $db2= sybase_connect_ex(); + $db3= sybase_connect_ex(NULL, NULL, $new= TRUE); + var_dump($db1, $db2, $db3, (string)$db1 == (string)$db2, (string)$db2 == (string)$db3); + sybase_close($db1); + +?> +--EXPECTF-- +resource(%d) of type (sybase-ct link) +resource(%d) of type (sybase-ct link) +resource(%d) of type (sybase-ct link) +bool(true) +bool(false) |