Skip to content

Commit

Permalink
disable php_uname for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Jan 9, 2020
1 parent 392f8af commit c859e8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Stripe/ApiRequestorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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'],
Expand Down

0 comments on commit c859e8a

Please sign in to comment.