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