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