File
- drupal/core/vendor/phpunit/phpunit/Tests/Util/XMLTest.php, line 192
Class
- Util_XMLTest
- @package PHPUnit
@author Mike Naberezny <mike@maintainable.com>
@author Derek DeVries <derek@maintainable.com>
@author Sebastian Bergmann <sebastian@phpunit.de>
@copyright 2001-2013 Sebastian Bergmann…
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);
}