PATH:
opt
/
alt
/
tests
/
alt-php80-pecl-ssh2_1.4.1-1.el8
/
tests
--TEST-- ssh2_sftp - SFTP tests --SKIPIF-- <?php require('ssh2_skip.inc'); ssh2t_needs_auth(); ssh2t_writes_remote(); --FILE-- <?php require('ssh2_test.inc'); $ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT); ssh2t_auth($ssh); $sftp = ssh2_sftp($ssh); $filename = ssh2t_tempnam(); $fp = fopen("ssh2.sftp://$sftp/$filename", 'w'); fwrite($fp, "Hello World\n"); fwrite($fp, "Goodbye Planet\n"); fclose($fp); readfile("ssh2.sftp://$sftp/$filename"); var_dump(ssh2_sftp_unlink($sftp, $filename)); --EXPECT-- Hello World Goodbye Planet bool(true)
[-] ssh2_shell.phpt
[edit]
[-] testkey_rsa.pub
[edit]
[-] ssh2_send_eof.phpt
[edit]
[-] ssh2_stream_select.phpt
[edit]
[-] ssh2_skip.inc
[edit]
[-] bug63480.phpt
[edit]
[-] ssh2_auth.phpt
[edit]
[-] ssh2_connect.phpt
[edit]
[-] ssh2_test.inc
[edit]
[-] ssh2_sftp_001.phpt
[edit]
[+]
..
[-] testkey_rsa
[edit]
[-] ssh2_auth_pubkey_file.phpt
[edit]
[-] ssh2_sftp_002.phpt
[edit]
[-] ssh2_exec.phpt
[edit]
[-] ssh2_auth_pubkey.phpt
[edit]
[-] bug79631.phpt
[edit]