]> granicus.if.org Git - php/commitdiff
add skipif case if the ldap extension is not loaded
authorDouglas Goldstein <cardoe@php.net>
Tue, 11 Dec 2007 17:35:11 +0000 (17:35 +0000)
committerDouglas Goldstein <cardoe@php.net>
Tue, 11 Dec 2007 17:35:11 +0000 (17:35 +0000)
ext/ldap/tests/ldap_explode_dn.phpt
ext/ldap/tests/skipif.inc [new file with mode: 0644]

index 1177b99f31054cfae262cc13c5ba767558220f18..b630703f755465374cbd2ab94b60e4d3e6fc7454 100644 (file)
@@ -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 (file)
index 0000000..d349428
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+if (!extension_loaded('ldap')){
+       die('skip ldap extension not available');
+}
+?>