mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
Fixed typo and fixed bug with destructor being called in test on ssh object
This commit is contained in:
parent
f0b9f59bcc
commit
46a1a0c1c2
@ -29,9 +29,9 @@ class Net_SSH2Test extends PhpseclibTestCase
|
||||
*/
|
||||
public function testFormatLog(array $message_log, array $message_number_log, $expected)
|
||||
{
|
||||
$ssh = $this->getMockBuilder('Net_SSH1')
|
||||
$ssh = $this->getMockBuilder('Net_SSH2')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(null)
|
||||
->setMethods(array('__destruct'))
|
||||
->getMock();
|
||||
|
||||
$result = $ssh->_format_log($message_log, $message_number_log);
|
||||
|
Loading…
Reference in New Issue
Block a user