Phalcon\Test\Annotations\Adapter\RedisTest::testShouldGetCacheBackendThroughGetter PHP Method

testShouldGetCacheBackendThroughGetter() public method

    public function testShouldGetCacheBackendThroughGetter()
    {
        $object = new Redis(['host' => TEST_RS_HOST]);
        $reflectedMethod = new ReflectionMethod(get_class($object), 'getCacheBackend');
        $reflectedMethod->setAccessible(true);
        $this->assertInstanceOf(CacheBackend::class, $reflectedMethod->invoke($object));
    }