File tree Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use PHPUnit \Framework \SkippedTestSuiteError ;
14
15
use Symfony \Component \Lock \Exception \InvalidTtlException ;
15
16
use Symfony \Component \Lock \Key ;
16
17
use Symfony \Component \Lock \PersistingStoreInterface ;
@@ -34,7 +35,7 @@ public static function setUpBeforeClass(): void
34
35
$ code = $ memcached ->getResultCode ();
35
36
36
37
if (\Memcached::RES_SUCCESS !== $ code && \Memcached::RES_NOTFOUND !== $ code ) {
37
- self :: markTestSkipped ('Unable to connect to the memcache host ' );
38
+ throw new SkippedTestSuiteError ('Unable to connect to the memcache host ' );
38
39
}
39
40
}
40
41
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use PHPUnit \Framework \SkippedTestSuiteError ;
15
+
14
16
/**
15
17
* @author Jérémy Derussé <jeremy@derusse.com>
16
18
* @group integration
@@ -23,7 +25,7 @@ public static function setUpBeforeClass(): void
23
25
try {
24
26
$ redis ->connect ();
25
27
} catch (\Exception $ e ) {
26
- self :: markTestSkipped ($ e ->getMessage ());
28
+ throw new SkippedTestSuiteError ($ e ->getMessage ());
27
29
}
28
30
}
29
31
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use PHPUnit \Framework \SkippedTestSuiteError ;
15
+
14
16
/**
15
17
* @author Jérémy Derussé <jeremy@derusse.com>
16
18
*
@@ -22,12 +24,12 @@ class RedisArrayStoreTest extends AbstractRedisStoreTest
22
24
public static function setUpBeforeClass (): void
23
25
{
24
26
if (!class_exists (\RedisArray::class)) {
25
- self :: markTestSkipped ('The RedisArray class is required. ' );
27
+ throw new SkippedTestSuiteError ('The RedisArray class is required. ' );
26
28
}
27
29
try {
28
30
(new \Redis ())->connect (getenv ('REDIS_HOST ' ));
29
31
} catch (\Exception $ e ) {
30
- self :: markTestSkipped ($ e ->getMessage ());
32
+ throw new SkippedTestSuiteError ($ e ->getMessage ());
31
33
}
32
34
}
33
35
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use PHPUnit \Framework \SkippedTestSuiteError ;
15
+
14
16
/**
15
17
* @author Jérémy Derussé <jeremy@derusse.com>
16
18
*
@@ -22,10 +24,10 @@ class RedisClusterStoreTest extends AbstractRedisStoreTest
22
24
public static function setUpBeforeClass (): void
23
25
{
24
26
if (!class_exists (\RedisCluster::class)) {
25
- self :: markTestSkipped ('The RedisCluster class is required. ' );
27
+ throw new SkippedTestSuiteError ('The RedisCluster class is required. ' );
26
28
}
27
29
if (!getenv ('REDIS_CLUSTER_HOSTS ' )) {
28
- self :: markTestSkipped ('REDIS_CLUSTER_HOSTS env var is not defined. ' );
30
+ throw new SkippedTestSuiteError ('REDIS_CLUSTER_HOSTS env var is not defined. ' );
29
31
}
30
32
}
31
33
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Lock \Tests \Store ;
13
13
14
+ use PHPUnit \Framework \SkippedTestSuiteError ;
14
15
use Symfony \Component \Lock \Exception \InvalidTtlException ;
15
16
use Symfony \Component \Lock \Store \RedisStore ;
16
17
@@ -27,7 +28,7 @@ public static function setUpBeforeClass(): void
27
28
try {
28
29
(new \Redis ())->connect (getenv ('REDIS_HOST ' ));
29
30
} catch (\Exception $ e ) {
30
- self :: markTestSkipped ($ e ->getMessage ());
31
+ throw new SkippedTestSuiteError ($ e ->getMessage ());
31
32
}
32
33
}
33
34
You can’t perform that action at this time.
0 commit comments