dis-bench / src /php /php-src /ext /ftp /tests /ftp_constructor.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
319 Bytes
--TEST--
Attempt to instantiate an FTP\Connection directly
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
try {
new FTP\Connection();
} catch (Error $ex) {
echo "Exception: ", $ex->getMessage(), "\n";
}
?>
--EXPECT--
Exception: Cannot directly construct FTP\Connection, use ftp_connect() or ftp_ssl_connect() instead