1--TEST--
2ldap_rename() - Testing ldap_rename() 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_rename($link));
14var_dump(ldap_rename($link, "cn=userNotFound,$base", "cn=userZ", "$base", true));
15?>
16===DONE===
17--EXPECTF--
18Warning: ldap_rename() expects at least 5 parameters, 1 given in %s on line %d
19NULL
20bool(false)
21===DONE===
22