diff --git a/tests/test-amp-analytics-options.php b/tests/test-amp-analytics-options.php index c1aec7b6f02..4b99936833c 100644 --- a/tests/test-amp-analytics-options.php +++ b/tests/test-amp-analytics-options.php @@ -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 ); @@ -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' ); @@ -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