Fixed typos

This commit is contained in:
Marc Philip Scholten 2013-12-28 18:16:09 +01:00
parent 3d5262156d
commit 19be15c4c4
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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');
}
}