public function FormTest::testAll in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testAll()
File
- vendor/
symfony/ dom-crawler/ Tests/ FormTest.php, line 652
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testAll() {
$form = $this
->createForm('<form method="post"><input type="text" name="bar" value="bar" /><input type="submit" /></form>');
$fields = $form
->all();
$this
->assertCount(1, $fields, '->all() return an array of form field objects');
$this
->assertInstanceOf('Symfony\\Component\\DomCrawler\\Field\\InputFormField', $fields['bar'], '->all() return an array of form field objects');
}