Skip to content

Commit cd6eae4

Browse files
committed
Merge pull request #50: Fix line ending in test case when running on Windows
2 parents 6af6094 + d658eb8 commit cd6eae4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ssh2_send_eof.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ssh2_send_eof() - Tests closing standard input
88
$ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT);
99
var_dump(ssh2t_auth($ssh));
1010

11-
$cmd=ssh2_exec($ssh, 'cat' . PHP_EOL);
11+
$cmd=ssh2_exec($ssh, "cat\n");
1212

1313
var_dump($cmd);
1414

tests/ssh2_stream_select.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var_dump(ssh2t_auth($ssh));
1010
$shell = ssh2_shell($ssh);
1111
var_dump($shell);
1212

13-
fwrite($shell, 'echo "howdy"' . PHP_EOL);
13+
fwrite($shell, "echo \"howdy\"\n");
1414
sleep(1);
1515

1616
$read = [$shell];

0 commit comments

Comments
 (0)