D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
modules
/
mfa
/
vendor
/
tedivm
/
stash
/
tests
/
Stash
/
Test
/
Driver
/
Filename :
RedisSocketTest.php
back
Copy
<?php /* * This file is part of the Stash package. * * (c) Robert Hafner <tedivm@tedivm.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Stash\Test\Driver; /** * @package Stash * @author Robert Hafner <tedivm@tedivm.com> */ class RedisSocketTest extends RedisTest { protected function setUp() : void { if (!$this->setup) { if (!($sock = @fsockopen('/tmp/redis.sock', null, $errno, $errstr, 1))) { $this->markTestSkipped('Redis server unavailable for testing.'); } fclose($sock); } } protected function getOptions() { $socket = '/tmp/redis.sock'; return array('servers' => array( array('socket' => $socket, 'ttl' => 0.1) )); } }