title: LogicException: The selected node does not have a form ancestor. error with symfony2 phpunit testing
body: <p>I always get the following error when I try to fill out a form with PHPUnit Functional Testing: <code>LogicException: The selected node does not have a form ancestor. error with symfony2 phpunit testing</code></p>
  
  <p>Here is the code, the error shows up at the last line of code:</p>
  
  <pre><code>        $editusercrawler = $client-&gt;request('GET', '/profile');
      $this-&gt;assertTrue($editusercrawler-&gt;filter('html:contains("Edit Profile")')-&gt;count() &gt; 0);
  
  
      // Go To Edit
      $link = $editusercrawler-&gt;filter('a:contains("Edit Profile")')-&gt;eq(0)-&gt;link();
      $editusercrawler = $client-&gt;click($link);
      //var_dump($client-&gt;getResponse()-&gt;getContent());
  
      // Check if User Edit was called
      $this-&gt;assertTrue($editusercrawler-&gt;filter('html:contains("Edit User")')-&gt;count() &gt; 0);
      //var_dump($client-&gt;getResponse()-&gt;getContent());
      // Fill out form
  
      //var_dump($client-&gt;getResponse()-&gt;getContent());
      $editusercrawler = $client-&gt;click($link);
      $editusercrawler = $client-&gt;request('GET', '/profile/edit');
      var_dump($client-&gt;getResponse()-&gt;getContent());
  
      $editUserForm = $editusercrawler-&gt;selectButton('update')-&gt;form();
  </code></pre>