public function CrawlerTest::testSelectButtonWithDoubleQuotesInNameAttribute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testSelectButtonWithDoubleQuotesInNameAttribute()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 716
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testSelectButtonWithDoubleQuotesInNameAttribute() {
$html = <<<HTML
<!DOCTYPE html>
<html lang="en">
<body>
<div id="action">
<a href="/index.php?r=site/login">Login</a>
</div>
<form id="login-form" action="/index.php?r=site/login" method="post">
<button type="submit" name='Click "Here"'>Submit</button>
</form>
</body>
</html>
HTML;
$crawler = new Crawler($html);
$this
->assertCount(1, $crawler
->selectButton('Click "Here"'));
}