diff options
author | Côme Bernigaud <mcmic@php.net> | 2015-06-17 13:47:32 +0200 |
---|---|---|
committer | Côme Bernigaud <mcmic@php.net> | 2015-06-17 13:55:13 +0200 |
commit | a5629f8845031a2e5f56a56aee3cf850939e92c0 (patch) | |
tree | c9a11f4f24854c516663f49b22a65e3a810b412a /ext/ldap/tests/ldap_add_basic.phpt | |
parent | c9554b90e4bf96f8a3f617b95775e2a94aeb8237 (diff) | |
download | php-git-a5629f8845031a2e5f56a56aee3cf850939e92c0.tar.gz |
Fixed LDAP tests so that base can exists
Now you can set the base in the env var LDAP_TEST_BASE.
The base has to exists. (before tests were attempting to create/delete
the base itself)
Diffstat (limited to 'ext/ldap/tests/ldap_add_basic.phpt')
-rw-r--r-- | ext/ldap/tests/ldap_add_basic.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/ldap/tests/ldap_add_basic.phpt b/ext/ldap/tests/ldap_add_basic.phpt index ca65e4986d..46fd6578db 100644 --- a/ext/ldap/tests/ldap_add_basic.phpt +++ b/ext/ldap/tests/ldap_add_basic.phpt @@ -13,7 +13,7 @@ require "connect.inc"; $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); var_dump( - ldap_add($link, "dc=my-domain,dc=com", array( + ldap_add($link, "dc=my-domain,$base", array( "objectClass" => array( "top", "dcObject", @@ -23,7 +23,7 @@ var_dump( )), ldap_get_entries( $link, - ldap_search($link, "dc=my-domain,dc=com", "(o=my-domain)") + ldap_search($link, "$base", "(o=my-domain)") ) ); ?> @@ -34,9 +34,9 @@ require "connect.inc"; $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); -ldap_delete($link, "dc=my-domain,dc=com"); +ldap_delete($link, "dc=my-domain,$base"); ?> ---EXPECT-- +--EXPECTF-- bool(true) array(2) { ["count"]=> @@ -77,7 +77,7 @@ array(2) { ["count"]=> int(3) ["dn"]=> - string(19) "dc=my-domain,dc=com" + string(%d) "dc=my-domain,%s" } } ===DONE=== |