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

_before() public method

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