diff options
author | Douglas Goldstein <cardoe@php.net> | 2007-12-11 17:36:03 +0000 |
---|---|---|
committer | Douglas Goldstein <cardoe@php.net> | 2007-12-11 17:36:03 +0000 |
commit | 46307c046f228374d348c9ea899d34b9f5c39d08 (patch) | |
tree | 754181999a74af9baf3e0723a53a713a1b37242e /ext/ldap | |
parent | 7a2e440ee3c4ea41bacbcfe8e75a06a0219043be (diff) | |
download | php-git-46307c046f228374d348c9ea899d34b9f5c39d08.tar.gz |
add skipif case if the ldap extension is not loaded
Diffstat (limited to 'ext/ldap')
-rw-r--r-- | ext/ldap/tests/ldap_explode_dn.phpt | 2 | ||||
-rw-r--r-- | ext/ldap/tests/skipif.inc | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ext/ldap/tests/ldap_explode_dn.phpt b/ext/ldap/tests/ldap_explode_dn.phpt index 1177b99f31..b630703f75 100644 --- a/ext/ldap/tests/ldap_explode_dn.phpt +++ b/ext/ldap/tests/ldap_explode_dn.phpt @@ -1,5 +1,7 @@ --TEST-- ldap_explode_dn() test +--SKIPIF-- +<?php require_once('skipif.inc'); ?> --FILE-- <?php diff --git a/ext/ldap/tests/skipif.inc b/ext/ldap/tests/skipif.inc new file mode 100644 index 0000000000..d3494284b0 --- /dev/null +++ b/ext/ldap/tests/skipif.inc @@ -0,0 +1,5 @@ +<?php +if (!extension_loaded('ldap')){ + die('skip ldap extension not available'); +} +?> |