Skip to content

Commit d8acca3

Browse files
Testing improvements
1 parent ba71fba commit d8acca3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ php:
88
- 5.6
99
- hhvm
1010

11-
matrix:
12-
allow_failures:
13-
- php: hhvm
14-
1511
before_script:
16-
- composer install --dev --prefer-source
12+
- travis_retry composer self-update
13+
- travis_retry composer install --no-interaction --prefer-source --dev
1714

1815
script:
19-
- phpunit --coverage-text
16+
- vendor/bin/phpunit --verbose --coverage-text

test/Github/Tests/Api/Repository/AssetsTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ public function shouldGetSingleReleaseAsset()
4646
*/
4747
public function shouldCreateReleaseAsset()
4848
{
49+
if (!defined('OPENSSL_TLSEXT_SERVER_NAME') || !OPENSSL_TLSEXT_SERVER_NAME) {
50+
return $this->markTestSkipped(
51+
'Asset upload support requires Server Name Indication. This is not supported be your PHP version.'
52+
);
53+
}
54+
4955
$name = 'asset.gzip';
5056
$body = 'assetCreatedData';
5157
$contentType = 'application/gzip';

0 commit comments

Comments
 (0)