diff --git a/driver-testsuite/tests/Basic/HeaderTest.php b/driver-testsuite/tests/Basic/HeaderTest.php
index <HASH>..<HASH> 100644
--- a/driver-testsuite/tests/Basic/HeaderTest.php
+++ b/driver-testsuite/tests/Basic/HeaderTest.php
@@ -27,6 +27,15 @@ class HeaderTest extends TestCase
         $this->assertContains('[HTTP_ACCEPT_LANGUAGE] => fr', $this->getSession()->getPage()->getContent());
     }
 
+    public function testSetUserAgent()
+    {
+        $session = $this->getSession();
+
+        $session->setRequestHeader('user-agent', 'foo bar');
+        $session->visit($this->pathTo('/headers.php'));
+        $this->assertContains('[HTTP_USER_AGENT] => foo bar', $session->getPage()->getContent());
+    }
+
     public function testResetHeaders()
     {
         $session = $this->getSession();
Added a test setting the user agent as request header

This test is coming from the ZombieDriver testsuite, which requires a
different code for setting the user agent than other headers.