public function FormTest::testFormFieldRegistryHasReturnsTrueWhenTheFQNExists in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testFormFieldRegistryHasReturnsTrueWhenTheFQNExists()
File
- vendor/
symfony/ dom-crawler/ Tests/ FormTest.php, line 738
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testFormFieldRegistryHasReturnsTrueWhenTheFQNExists() {
$registry = new FormFieldRegistry();
$registry
->add($this
->getFormFieldMock('foo[bar]'));
$this
->assertTrue($registry
->has('foo'));
$this
->assertTrue($registry
->has('foo[bar]'));
$this
->assertFalse($registry
->has('bar'));
$this
->assertFalse($registry
->has('foo[foo]'));
}