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

testShouldGetCacheBackendThroughGetter() public method

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