php-src/ext/ftp/tests/ftp_rmdir_basic.phpt
2009-08-30 09:30:13 +00:00

21 lines
398 B
PHP
Executable File

--TEST--
Testing ftp_rmdir returns true
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--FILE--
<?php
require 'server.inc';
$ftp = ftp_connect('127.0.0.1', $port);
if (!$ftp) die("Couldn't connect to the server");
ftp_login($ftp, 'user', 'pass');
var_dump(ftp_rmdir($ftp, 'www/'));
?>
--EXPECT--
bool(true)