You are here

public function FormTest::testgetPhpValuesWithEmptyTextarea in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testgetPhpValuesWithEmptyTextarea()

File

vendor/symfony/dom-crawler/Tests/FormTest.php, line 958

Class

FormTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testgetPhpValuesWithEmptyTextarea() {
  $dom = new \DOMDocument();
  $dom
    ->loadHTML('
              <html>
                  <form>
                      <textarea name="example"></textarea>
                  </form>
              </html>
          ');
  $nodes = $dom
    ->getElementsByTagName('form');
  $form = new Form($nodes
    ->item(0), 'http://example.com');
  $this
    ->assertEquals($form
    ->getPhpValues(), array(
    'example' => '',
  ));
}