You are here

public function CrawlerTest::testSelectButtonWithSingleQuotesInNameAttribute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testSelectButtonWithSingleQuotesInNameAttribute()

File

vendor/symfony/dom-crawler/Tests/CrawlerTest.php, line 695

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testSelectButtonWithSingleQuotesInNameAttribute() {
  $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\''));
}