Mongolid\Util\CacheComponentTest::getCacheComponent PHP Метод

getCacheComponent() защищенный Метод

protected getCacheComponent ( )
    protected function getCacheComponent()
    {
        $test = $this;
        $cacheComponent = m::mock(CacheComponent::class . '[time]');
        $cacheComponent->shouldAllowMockingProtectedMethods();
        $cacheComponent->shouldReceive('time')->andReturnUsing(function () use($test) {
            return $test->time;
        });
        return $cacheComponent;
    }