diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 04e24019..1df7450b 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -958,7 +958,7 @@ class Net_SSH2 /** * Generates the SSH identifier - * You should overwrite this method in your own class if you want to use an other identifier + * You should overwrite this method in your own class if you want to use another identifier * * @access protected * @return String diff --git a/tests/Net/SSH2Test.php b/tests/Net/SSH2Test.php index f2c2c65d..3177a323 100644 --- a/tests/Net/SSH2Test.php +++ b/tests/Net/SSH2Test.php @@ -65,13 +65,13 @@ class Net_SSH2Test extends PhpseclibTestCase public function testGenerateIdentifier($expected, array $requiredExtensions) { $notAllowed = array('gmp', 'bcmath', 'mcrypt', 'gmp'); - foreach($notAllowed as $nowAllowedExtension) { - if(in_array($nowAllowedExtension, $requiredExtensions)) { + foreach($notAllowed as $notAllowedExtension) { + if(in_array($notAllowedExtension, $requiredExtensions)) { continue; } - if(extension_loaded($nowAllowedExtension)) { - $this->markTestSkipped('Extension ' . $nowAllowedExtension . ' is not allowed for this data-set'); + if(extension_loaded($notAllowedExtension)) { + $this->markTestSkipped('Extension ' . $notAllowedExtension . ' is not allowed for this data-set'); } }