bandwidthThrottle\tokenBucket\storage\PHPRedisStorageTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        if (!getenv("REDIS_URI")) {
            $this->markTestSkipped();
        }
        $uri = parse_url(getenv("REDIS_URI"));
        $this->redis = new Redis();
        $this->redis->connect($uri["host"]);
        $this->storage = new PHPRedisStorage("test", $this->redis);
    }