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

@@ -8,7 +8,7 @@ use MailPoet\WP\Emoji;
use MailPoetVendor\Idiorm\ORM;
class EmojiTest extends \MailPoetTest {
function _before() {
public function _before() {
parent::_before();
$this->data_encoded = "Emojis: 😃😵💪, not emojis: .Ž";
$this->data_decoded = "Emojis: 😃😵💪, not emojis: .Ž";
@@ -17,7 +17,7 @@ class EmojiTest extends \MailPoetTest {
$this->emoji = new Emoji();
}
function testItCanEncodeNewsletterRenderedBody() {
public function testItCanEncodeNewsletterRenderedBody() {
$emoji = $this->make(
Emoji::class,
['encodeForUTF8Column' => Expected::exactly(3, function ($params) {
@@ -29,7 +29,7 @@ class EmojiTest extends \MailPoetTest {
$emoji->encodeEmojisInBody('string, call 3');
}
function testItCanDecodeNewsletterBody() {
public function testItCanDecodeNewsletterBody() {
$emoji = $this->make(
Emoji::class,
['decodeEntities' => Expected::exactly(3, function ($params) {
@@ -41,7 +41,7 @@ class EmojiTest extends \MailPoetTest {
$emoji->decodeEmojisInBody('string, call 3');
}
function testItCanEncodeForUTF8Column() {
public function testItCanEncodeForUTF8Column() {
$table = Env::$db_prefix . 'dummytable_utf8';
$this->createTable($table, 'utf8');
@@ -51,7 +51,7 @@ class EmojiTest extends \MailPoetTest {
$this->dropTable($table);
}
function testItDoesNotEncodeForUTF8MB4Column() {
public function testItDoesNotEncodeForUTF8MB4Column() {
$table = Env::$db_prefix . 'dummytable_utf8mb4';
$this->createTable($table, 'utf8mb4');
@@ -61,7 +61,7 @@ class EmojiTest extends \MailPoetTest {
$this->dropTable($table);
}
function testItCanDecodeEntities() {
public function testItCanDecodeEntities() {
$result = $this->emoji->decodeEntities($this->data_encoded);
expect($result)->equals($this->data_decoded);
}