public function ChoiceFormFieldTest::testSelectWithEmptyBooleanAttribute in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\DomCrawler\Tests\FieldCode
public function testSelectWithEmptyBooleanAttribute() {
$node = $this
->createSelectNode(array(
'foo' => false,
'bar' => true,
), array(), '');
$field = new ChoiceFormField($node);
$this
->assertEquals('bar', $field
->getValue());
}