1--TEST-- 2ldap_sort() - Testing ldap_sort() that should fail 3--CREDITS-- 4Patrick Allaert <patrickallaert@php.net> 5# Belgian PHP Testfest 2009 6--SKIPIF-- 7<?php require_once('skipif.inc'); ?> 8--FILE-- 9<?php 10require "connect.inc"; 11 12$link = ldap_connect($host, $port); 13var_dump(ldap_sort($link)); 14var_dump(ldap_sort($link, $link)); 15var_dump(ldap_sort($link, $link, $link, $link)); 16var_dump(ldap_sort($link, $link, $link)); 17var_dump(ldap_sort($link, $link, "sn")); 18?> 19===DONE=== 20--EXPECTF-- 21Warning: ldap_sort() expects exactly 3 parameters, 1 given in %s on line %d 22bool(false) 23 24Warning: ldap_sort() expects exactly 3 parameters, 2 given in %s on line %d 25bool(false) 26 27Warning: ldap_sort() expects exactly 3 parameters, 4 given in %s on line %d 28bool(false) 29 30Warning: ldap_sort() expects parameter 3 to be %binary_string_optional%, resource given in %s on line %d 31bool(false) 32 33Warning: ldap_sort(): Supplied resource is not a valid ldap result resource in %s on line %d 34bool(false) 35===DONE=== 36