From 96aaa262ebd39805ac4f95ad6946d8ae9bb5aa34 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 7 Apr 2014 17:58:49 +0200 Subject: [PATCH] Use pwd instead of ls. If the directory is empty callback will not be called. --- tests/Net/SSH2FunctionalTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Net/SSH2FunctionalTest.php b/tests/Net/SSH2FunctionalTest.php index 3078bd40..75ac304f 100644 --- a/tests/Net/SSH2FunctionalTest.php +++ b/tests/Net/SSH2FunctionalTest.php @@ -56,6 +56,6 @@ class Net_SSH2FunctionalTest extends PhpseclibFunctionalTestCase ->expects($this->atLeastOnce()) ->method('callbackMethod') ->will($this->returnValue(true)); - $ssh->exec('ls', array($callbackObject, 'callbackMethod')); + $ssh->exec('pwd', array($callbackObject, 'callbackMethod')); } }