Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@ -6,7 +6,7 @@ use MailPoet\Util\Security;
class SecurityTest extends \MailPoetUnitTest {
function testItCanGenerateARandomString() {
public function testItCanGenerateARandomString() {
// it has a default length of 5
$hash = Security::generateRandomString();
expect(strlen($hash))->equals(5);
@ -24,14 +24,14 @@ class SecurityTest extends \MailPoetUnitTest {
expect(ctype_alnum($long_hash))->true();
}
function testItGeneratesRandomHash() {
public function testItGeneratesRandomHash() {
$hash_1 = Security::generateHash();
$hash_2 = Security::generateHash();
expect($hash_1)->notEquals($hash_2);
expect(strlen($hash_1))->equals(Security::HASH_LENGTH);
}
function testItGeneratesRandomHashWithCustomLength() {
public function testItGeneratesRandomHashWithCustomLength() {
expect(strlen(Security::generateHash(10)))->equals(10);
}
}