mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 02:01:21 +00:00
Use pwd instead of ls. If the directory is empty callback will not be called.
This commit is contained in:
parent
526a5c2ffb
commit
96aaa262eb
@ -56,6 +56,6 @@ class Net_SSH2FunctionalTest extends PhpseclibFunctionalTestCase
|
|||||||
->expects($this->atLeastOnce())
|
->expects($this->atLeastOnce())
|
||||||
->method('callbackMethod')
|
->method('callbackMethod')
|
||||||
->will($this->returnValue(true));
|
->will($this->returnValue(true));
|
||||||
$ssh->exec('ls', array($callbackObject, 'callbackMethod'));
|
$ssh->exec('pwd', array($callbackObject, 'callbackMethod'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user