public function Util_XMLTest::testConvertAssertSelectEltMultiAttrEqual in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/tests/Util/XMLTest.php \Util_XMLTest::testConvertAssertSelectEltMultiAttrEqual()
File
- vendor/
phpunit/ phpunit/ tests/ Util/ XMLTest.php, line 182
Class
- Util_XMLTest
- @since Class available since Release 3.3.0 @covers PHPUnit_Util_XML
Code
public function testConvertAssertSelectEltMultiAttrEqual() {
$selector = 'div[foo="bar"][baz="fob"]';
$converted = PHPUnit_Util_XML::convertSelectToTag($selector);
$tag = array(
'tag' => 'div',
'attributes' => array(
'foo' => 'bar',
'baz' => 'fob',
),
);
$this
->assertEquals($tag, $converted);
}