From 19be15c4c43f653cb1714894a603de4d06593d19 Mon Sep 17 00:00:00 2001 From: Marc Philip Scholten Date: Sat, 28 Dec 2013 18:16:09 +0100 Subject: [PATCH] Fixed typos --- phpseclib/Net/SSH2.php | 2 +- tests/Net/SSH2Test.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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'); } }