Skip to content

Commit

Permalink
fix WordPress.Classes.ClassInstantiation.MissingParenthesis error
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Schreiber authored and paulschreiber committed Mar 10, 2018
1 parent 805a491 commit df77083
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-amp-analytics-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function test_analytics_js_added() {
$libxml_previous_state = libxml_use_internal_errors( true );

// Create a new DOM document
$dom = new DOMDocument;
$dom = new DOMDocument();
// Load the rendered page into it
$dom->loadHTML( $amp_rendered );

Expand Down Expand Up @@ -171,7 +171,7 @@ public function test_one_analytics_component_added() {

$libxml_previous_state = libxml_use_internal_errors( true );

$dom = new DOMDocument;
$dom = new DOMDocument();
$dom->loadHTML( $amp_rendered );

$components = $dom->getElementsByTagName( 'amp-analytics' );
Expand Down Expand Up @@ -202,7 +202,7 @@ public function test_two_analytics_components_added() {

$libxml_previous_state = libxml_use_internal_errors( true );

$dom = new DOMDocument;
$dom = new DOMDocument();
$dom->loadHTML( $amp_rendered );
$components = $dom->getElementsByTagName( 'amp-analytics' );
// Two amp-analytics components should be in the page
Expand Down

0 comments on commit df77083

Please sign in to comment.