Skip to content

Commit 7270930

Browse files
committed
Merge pull request #159 from GrahamCampbell/testing
Testing Improvements
2 parents 3928615 + d8acca3 commit 7270930

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
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

lib/Github/Api/Repository/Assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function show($username, $repository, $id)
6767
public function create($username, $repository, $id, $name, $contentType, $content)
6868
{
6969
if (!defined('OPENSSL_TLSEXT_SERVER_NAME') || !OPENSSL_TLSEXT_SERVER_NAME) {
70-
throw new ErrorException('Asset upload support requires Server Name Indication. This is not supported se your PHP version. See http://php.net/manual/en/openssl.constsni.php.');
70+
throw new ErrorException('Asset upload support requires Server Name Indication. This is not supported by your PHP version. See http://php.net/manual/en/openssl.constsni.php.');
7171
}
7272

7373
// Asset creation requires a separate endpoint, uploads.github.com.

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)