Phalcon\Test\Unit\Mvc\Model\Metadata\ApcCest::_before PHP Method

_before() public method

public _before ( UnitTester $I )
$I UnitTester
    public function _before(UnitTester $I)
    {
        if (!function_exists('apc_fetch')) {
            throw new \PHPUnit_Framework_SkippedTestError('Warning: apc extension is not loaded');
        }
        $I->haveServiceInDi('modelsMetadata', function () {
            return new Apc(['prefix' => 'app\\', 'lifetime' => 60]);
        }, true);
        $this->data = (require PATH_FIXTURES . 'metadata/robots.php');
        apc_clear_cache('user');
    }