Add public keyword to methods
[MAILPOET-2413]
This commit is contained in:
@@ -9,11 +9,11 @@ class DOMTest extends \MailPoetUnitTest {
|
||||
/** @var pQuery\DomNode */
|
||||
private $root;
|
||||
|
||||
function _before() {
|
||||
public function _before() {
|
||||
$this->root = pQuery::parseStr('<p><i>italic</i><em>previous text<a href="#mylink"><img src="#myimage" /></a>next text</em><b>bolded</b></p>');
|
||||
}
|
||||
|
||||
function testItDeepSplitsDOMTreeByElement() {
|
||||
public function testItDeepSplitsDOMTreeByElement() {
|
||||
$a = $this->root->query('a');
|
||||
assert($a instanceof pQuery);
|
||||
DOMUtil::splitOn($this->root, $a->offsetGet(0));
|
||||
@@ -25,7 +25,7 @@ class DOMTest extends \MailPoetUnitTest {
|
||||
);
|
||||
}
|
||||
|
||||
function testItFindsTopAncestor() {
|
||||
public function testItFindsTopAncestor() {
|
||||
$img = $this->root->query('img');
|
||||
assert($img instanceof pQuery);
|
||||
$image = $img->offsetGet(0);
|
||||
|
Reference in New Issue
Block a user