diff options
Diffstat (limited to 'ext/ldap/tests/ldap_get_option_basic.phpt')
-rw-r--r-- | ext/ldap/tests/ldap_get_option_basic.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/ldap/tests/ldap_get_option_basic.phpt b/ext/ldap/tests/ldap_get_option_basic.phpt new file mode 100644 index 0000000..3136a5a --- /dev/null +++ b/ext/ldap/tests/ldap_get_option_basic.phpt @@ -0,0 +1,25 @@ +--TEST-- +ldap_get_option() - Basic ldap_get_option() operation +--CREDITS-- +Patrick Allaert <patrickallaert@php.net> +# Belgian PHP Testfest 2009 +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php +require "connect.inc"; + +$link = ldap_connect($host, $port); +$option = null; +ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version); + +var_dump( + ldap_get_option($link, LDAP_OPT_PROTOCOL_VERSION, $option), + $option +); +?> +===DONE=== +--EXPECT-- +bool(true) +int(3) +===DONE=== |