You are here

public function ChoiceFormFieldTest::testSelectWithEmptyBooleanAttribute in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dom-crawler/Tests/Field/ChoiceFormFieldTest.php \Symfony\Component\DomCrawler\Tests\Field\ChoiceFormFieldTest::testSelectWithEmptyBooleanAttribute()

File

vendor/symfony/dom-crawler/Tests/Field/ChoiceFormFieldTest.php, line 115

Class

ChoiceFormFieldTest

Namespace

Symfony\Component\DomCrawler\Tests\Field

Code

public function testSelectWithEmptyBooleanAttribute() {
  $node = $this
    ->createSelectNode(array(
    'foo' => false,
    'bar' => true,
  ), array(), '');
  $field = new ChoiceFormField($node);
  $this
    ->assertEquals('bar', $field
    ->getValue());
}