-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Execute docker dependent tests with github actions
- Loading branch information
Showing
5 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
* @author Jérémy Derussé <[email protected]> | ||
* | ||
* @requires extension memcached | ||
* @group integration | ||
*/ | ||
class MemcachedStoreTest extends AbstractStoreTest | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
/** | ||
* @author Jérémy Derussé <[email protected]> | ||
* @group integration | ||
*/ | ||
class PredisStoreTest extends AbstractRedisStoreTest | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
* @author Jérémy Derussé <[email protected]> | ||
* | ||
* @requires extension redis | ||
* @group integration | ||
*/ | ||
class RedisArrayStoreTest extends AbstractRedisStoreTest | ||
{ | ||
|
@@ -23,9 +24,10 @@ public static function setUpBeforeClass(): void | |
if (!class_exists('RedisArray')) { | ||
self::markTestSkipped('The RedisArray class is required.'); | ||
} | ||
if (!@((new \Redis())->connect(getenv('REDIS_HOST')))) { | ||
$e = error_get_last(); | ||
self::markTestSkipped($e['message']); | ||
try { | ||
(new \Redis())->connect(getenv('REDIS_HOST')); | ||
} catch (\Exception $e) { | ||
self::markTestSkipped($e->getMessage()); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
* @author Jérémy Derussé <[email protected]> | ||
* | ||
* @requires extension redis | ||
* @group integration | ||
*/ | ||
class RedisClusterStoreTest extends AbstractRedisStoreTest | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,16 @@ | |
* @author Jérémy Derussé <[email protected]> | ||
* | ||
* @requires extension redis | ||
* @group integration | ||
*/ | ||
class RedisStoreTest extends AbstractRedisStoreTest | ||
{ | ||
public static function setUpBeforeClass(): void | ||
{ | ||
if (!@((new \Redis())->connect(getenv('REDIS_HOST')))) { | ||
$e = error_get_last(); | ||
self::markTestSkipped($e['message']); | ||
try { | ||
(new \Redis())->connect(getenv('REDIS_HOST')); | ||
} catch (\Exception $e) { | ||
self::markTestSkipped($e->getMessage()); | ||
} | ||
} | ||
|
||
|