From c859e8a49e47d0b253b3ae9f02482f369be1e52c Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Thu, 9 Jan 2020 11:57:02 -0500 Subject: [PATCH] disable php_uname for the test --- tests/Stripe/ApiRequestorTest.php | 3 +++ 1 file changed, 3 insertions(+) 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'],