Skip to content

Commit 714d072

Browse files
committed
Mark skipped tests with PHPUnit markTestSkipped()
1 parent 523c3fa commit 714d072

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/PHPCurlClass/PHPCurlClassTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ public function testDigestHttpAuth()
898898
// Skip Digest Access Authentication test on HHVM.
899899
// https://github.com/facebook/hhvm/issues/5201
900900
if (defined('HHVM_VERSION')) {
901-
return;
901+
$this->markTestSkipped();
902902
}
903903

904904
$username = 'myusername';
@@ -1271,7 +1271,7 @@ public function testPostFileFormDataContentType()
12711271
public function testPostCurlFileFormDataContentType()
12721272
{
12731273
if (!class_exists('CURLFile')) {
1274-
return;
1274+
$this->markTestSkipped();
12751275
}
12761276

12771277
$file_path = Helper\get_png();
@@ -2896,7 +2896,7 @@ public function testMemoryLeak()
28962896
// Skip memory leak test failing for PHP 7.
28972897
// "Failed asserting that 8192 is less than 1000."
28982898
if (getenv('TRAVIS_PHP_VERSION') === '7.0') {
2899-
return;
2899+
$this->markTestSkipped();
29002900
}
29012901

29022902
ob_start();
@@ -2934,7 +2934,7 @@ public function testAlternativeStandardErrorOutput()
29342934
{
29352935
// Skip test on HHVM due to "Segmentation fault".
29362936
if (defined('HHVM_VERSION')) {
2937-
return;
2937+
$this->markTestSkipped();
29382938
}
29392939

29402940
$buffer = fopen('php://memory', 'w+');
@@ -2980,7 +2980,7 @@ public function testOptionSet()
29802980
{
29812981
// Skip this test on 5.3, 5.4, and HHVM.
29822982
if (version_compare(PHP_VERSION, '5.5.0', '<') || defined('HHVM_VERSION')) {
2983-
return;
2983+
$this->markTestSkipped();
29842984
}
29852985

29862986
$option = CURLOPT_ENCODING;

tests/PHPCurlClass/PHPMultiCurlClassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ public function testDigestHttpAuthSuccess()
19221922
// Skip Digest Access Authentication test on HHVM.
19231923
// https://github.com/facebook/hhvm/issues/5201
19241924
if (defined('HHVM_VERSION')) {
1925-
return;
1925+
$this->markTestSkipped();
19261926
}
19271927

19281928
$username = 'myusername';

0 commit comments

Comments
 (0)