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

testShouldGetCacheBackendThroughGetter() public method

    public function testShouldGetCacheBackendThroughGetter()
    {
        $object = new Aerospike(['hosts' => [['addr' => TEST_AS_HOST, 'port' => TEST_AS_PORT]]]);
        $reflectedMethod = new ReflectionMethod(get_class($object), 'getCacheBackend');
        $reflectedMethod->setAccessible(true);
        $this->assertInstanceOf(CacheBackend::class, $reflectedMethod->invoke($object));
    }