2059d049c1d0f5cf7bb5201a2d827ec005e9f0a1
[yaffs-website] / vendor / symfony / dom-crawler / Tests / Field / FormFieldTestCase.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\DomCrawler\Tests\Field;
13
14 use PHPUnit\Framework\TestCase;
15
16 class FormFieldTestCase extends TestCase
17 {
18     protected function createNode($tag, $value, $attributes = array())
19     {
20         $document = new \DOMDocument();
21         $node = $document->createElement($tag, $value);
22
23         foreach ($attributes as $name => $value) {
24             $node->setAttribute($name, $value);
25         }
26
27         return $node;
28     }
29 }