You are here

public function Util_XMLTest::testConvertAssertSelectEltAttrContains in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Util/XMLTest.php \Util_XMLTest::testConvertAssertSelectEltAttrContains()

File

vendor/phpunit/phpunit/tests/Util/XMLTest.php, line 200

Class

Util_XMLTest
@since Class available since Release 3.3.0 @covers PHPUnit_Util_XML

Code

public function testConvertAssertSelectEltAttrContains() {
  $selector = 'div[foo*="bar"]';
  $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
  $tag = array(
    'tag' => 'div',
    'attributes' => array(
      'foo' => 'regexp:/.*bar.*/',
    ),
  );
  $this
    ->assertEquals($tag, $converted);
}