for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Governator\Tests\Integration\Redis;
/**
* @group time-sensitive
*
* @author Kevin Bond <[email protected]>
*/
final class PredisThrottleTest extends BaseRedisThrottleTest
{
public static function setUpBeforeClass(): void
if (!\getenv('REDIS_HOST')) {
self::markTestSkipped('REDIS_HOST not configured.');
}
protected function createConnection(): object
$redis = new \Predis\Client('tcp://'.\getenv('REDIS_HOST').':6379');
$redis->connect();
return $redis;