mirror of
https://github.com/php/pecl-networking-ssh2.git
synced 2026-03-23 22:52:06 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user