/** * Initialize router */ static function setupBeforeClass() { parent::setupBeforeClass(); if (testAdapter == 'HTTP') { // echo("Test using HTTP adapter\n"); static::$adapter = new GuzzleAdapter(new Client()); } else { if (null == self::$app) { // echo("Test using built-in Router\n"); self::$app = new Router(); } } }
public static function setupBeforeClass() { parent::setupBeforeClass(); FacebookSession::setDefaultApplication(static::$appId, static::$appSecret); static::$session = new FacebookSession(static::$accessToken); static::$logger = new NullLogger(); }