Fixed typo and fixed bug with destructor being called in test on ssh object

This commit is contained in:
Marc Philip Scholten 2013-12-17 20:09:26 +01:00
parent f0b9f59bcc
commit 46a1a0c1c2

View File

@ -29,9 +29,9 @@ class Net_SSH2Test extends PhpseclibTestCase
*/ */
public function testFormatLog(array $message_log, array $message_number_log, $expected) public function testFormatLog(array $message_log, array $message_number_log, $expected)
{ {
$ssh = $this->getMockBuilder('Net_SSH1') $ssh = $this->getMockBuilder('Net_SSH2')
->disableOriginalConstructor() ->disableOriginalConstructor()
->setMethods(null) ->setMethods(array('__destruct'))
->getMock(); ->getMock();
$result = $ssh->_format_log($message_log, $message_number_log); $result = $ssh->_format_log($message_log, $message_number_log);