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

_before() public method

public _before ( UnitTester $I )
$I UnitTester
    public function _before(UnitTester $I)
    {
        if (!class_exists('Memcache')) {
            throw new \PHPUnit_Framework_SkippedTestError('Warning: Memcache class does not exist, test skipped');
        }
        $I->haveServiceInDi('modelsMetadata', function () {
            return new Memcache(['host' => TEST_MC_HOST, 'port' => TEST_MC_PORT]);
        }, true);
        $this->data = (require PATH_FIXTURES . 'metadata/robots.php');
    }