4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DomCrawler\Tests\Field;
14 use PHPUnit\Framework\TestCase;
16 class FormFieldTestCase extends TestCase
18 protected function createNode($tag, $value, $attributes = array())
20 $document = new \DOMDocument();
21 $node = $document->createElement($tag, $value);
23 foreach ($attributes as $name => $value) {
24 $node->setAttribute($name, $value);