diff --git a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php index 5d91526..96cb123 100644 --- a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php @@ -2,7 +2,7 @@ /** * @file - * Container Drupal\Tests\Component\Utility\UserAgentTest + * Contains Drupal\Tests\Component\Utility\HtmlTest. */ namespace Drupal\Tests\Component\Utility; @@ -11,11 +11,8 @@ use Drupal\Tests\UnitTestCase; /** - * Tests the http query methods. - * - * @group Utility - * * @coversDefaultClass \Drupal\Component\Utility\Html + * @group Utility */ class HtmlTest extends UnitTestCase { @@ -24,13 +21,8 @@ class HtmlTest extends UnitTestCase { * * @dataProvider providerTestLoad * @covers ::load - * - * @param string $html - * Original HTML. - * @param array $tags - * A list of tags to find. Key is tag, value is number instances. */ - public function testLoad($html, $tags) { + public function testLoad($html, $tags, $unused) { $doc = Html::load($html); // If we have a document we did our job. $this->assertInstanceOf('\DomDocument', $doc); @@ -46,25 +38,30 @@ public function testLoad($html, $tags) { * * @dataProvider providerTestLoad * @covers ::serialize - * - * @param string $html - * Original HTML. - * @param array $tags - * A list of tags to find. Key is tag, value is number instances. - * @param $expected - * Expected serialized value. */ public function testSerialize($html, $tags, $expected) { $doc = Html::load($html); $this->assertEquals($expected, Html::serialize($doc)); } + /** + * Data provider for a number of tests in this class. + * + * @return array + * - Original HTML. + * - A list of tags to find. Key is tag, value is number instances. + * - Expected normalized value. + */ public function providerTestLoad() { return array( array('', array('a' => 1), ''), array('', array('a' => 1), ''), - // Bad html - array('