From b439d13a81c443ce3e269ffed7ed0c73bfd0f9b9 Mon Sep 17 00:00:00 2001 From: Leonid Terentyev Date: Mon, 8 Oct 2012 14:13:27 +0300 Subject: [PATCH] fixed DomCrwaler/Form to handle ', + array('bar' => array('Symfony\\Component\\DomCrawler\\Field\\InputFormField', 'bar')), + ), array( 'appends the submitted button value but not other submit buttons', ' @@ -404,7 +409,8 @@ class FormTest extends \PHPUnit_Framework_TestCase $dom = new \DOMDocument(); $dom->loadHTML(''.$form.''); - $nodes = $dom->getElementsByTagName('input'); + $xPath = new \DOMXPath($dom); + $nodes = $xPath->query('//input | //button'); if (null === $currentUri) { $currentUri = 'http://example.com/';