diff --git a/tests/Stripe/ApiRequestorTest.php b/tests/Stripe/ApiRequestorTest.php
index 60ab94a695..3998e266b1 100644
--- a/tests/Stripe/ApiRequestorTest.php
+++ b/tests/Stripe/ApiRequestorTest.php
@@ -61,6 +61,8 @@ public function testDefaultHeaders()
         $apiKey = 'sk_test_notarealkey';
         $clientInfo = ['httplib' => 'testlib 0.1.2'];
 
+        ini_set('disable_functions', 'foo,php_uname,bar');
+
         $headers = $method->invoke(null, $apiKey, $clientInfo);
 
         $ua = json_decode($headers['X-Stripe-Client-User-Agent']);
@@ -70,6 +72,7 @@ public function testDefaultHeaders()
         $this->assertSame($ua->application->partner_id, 'partner_1234');
 
         $this->assertSame($ua->httplib, 'testlib 0.1.2');
+        $this->assertSame($ua->uname, '(disabled)');
 
         $this->assertSame(
             $headers['User-Agent'],