php / pecl-networking-ssh2

Bindings for the libssh2 library
http://pecl.php.net/package/ssh2
Other
51 stars 59 forks source link

Fix line ending in test case when running on Windows #50

Closed cmb69 closed 3 years ago

cmb69 commented 3 years ago

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.