protected function setUp() { define('SERVER_SCRIPT', 'unittest'); \Slim\Environment::mock(); \Application\Bootstrap::init(); \Library\SFacebook::init(); }
/** * @internal param \Slim\Slim $app * @return \Slim\Slim */ public static function init() { static::defineVariables(); App::$inst = static::initSlim(); static::defineProtocol(); static::initConfig(); static::initHttpAuth(); static::initLogger(); static::initCache(); static::initDoctrine(); static::initAppVars(); static::initRouting(); //FIXME: uncomnt this line and fix in doctrine-cli if (!defined('SERVER_SCRIPT')) { SFacebook::init(); } return App::$inst; }