Fix line ending in test case when running on Windows

This test case executes `cat` and uses `PHP_EOL` as line ending.  This
causes the test to fail when executed on Windows connected to a Linux
SSH server.  Since `cat` is usually not available on Windows, running
the test would fail if a Windows SSH server was used.  Thus, we can
easily fix this by always using LF.
This commit is contained in:
Christoph M. Becker
2021-02-10 17:46:13 +01:00
parent 93265d71bd
commit 0173ac4e95

View File

@@ -8,7 +8,7 @@ ssh2_send_eof() - Tests closing standard input
$ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT);
var_dump(ssh2t_auth($ssh));
$cmd=ssh2_exec($ssh, 'cat' . PHP_EOL);
$cmd=ssh2_exec($ssh, "cat\n");
var_dump($cmd);