public function FormTest::testSetValueOnMultiValuedFieldsWithMalformedName 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::testSetValueOnMultiValuedFieldsWithMalformedName()
File
- vendor/
symfony/ dom-crawler/ Tests/ FormTest.php, line 348
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testSetValueOnMultiValuedFieldsWithMalformedName() {
$form = $this
->createForm('<form><input type="text" name="foo[bar]" value="bar" /><input type="text" name="foo[baz]" value="baz" /><input type="submit" /></form>');
try {
$form['foo[bar'] = 'bar';
$this
->fail('->offsetSet() throws an \\InvalidArgumentException exception if the name is malformed.');
} catch (\InvalidArgumentException $e) {
$this
->assertTrue(true, '->offsetSet() throws an \\InvalidArgumentException exception if the name is malformed.');
}
}