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

_before() public method

public _before ( UnitTester $I )
$I UnitTester
    public function _before(UnitTester $I)
    {
        if (!extension_loaded('redis')) {
            throw new \PHPUnit_Framework_SkippedTestError('Warning: redis extension is not loaded');
        }
        $I->haveServiceInDi('modelsMetadata', function () {
            return new Redis(['host' => TEST_RS_HOST, 'port' => TEST_RS_PORT]);
        }, true);
        $this->data = (require PATH_FIXTURES . 'metadata/robots.php');
    }