Use pwd instead of ls. If the directory is empty callback will not be called.

This commit is contained in:
Andreas Fischer 2014-04-07 17:58:49 +02:00
parent 526a5c2ffb
commit 96aaa262eb

View File

@ -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'));
}
}