Ejemplo n.º 1
0
 /**
  * Returns the NAME of the first tag in $str
  *
  * @test
  * @dataProvider getFirstTagNameDataProvider
  *
  * @param string $str HTML tag (The element name MUST be separated from the attributes by a space character! Just *whitespace* will not do)
  * @param bool $preserveCase If set, then the tag is NOT converted to uppercase by case is preserved.
  * @param string $expected The expected result.
  */
 public function getFirstTagName($str, $preserveCase, $expected)
 {
     $this->assertEquals($expected, $this->subject->getFirstTagName($str, $preserveCase));
 }