public function setUp() { $configMock = new ConfigIOMock(); $configMock->setValues('mime', array('txt' => 'text/plain')); $browser = $this->getMock('zibo\\library\\filesystem\\browser\\Browser'); Zibo::getInstance($browser, $configMock); }
public function setUp() { $configMock = new ConfigIOMock(); $configMock->setValues('mime', array('txt' => 'text/plain')); $browser = $this->getMock('zibo\\core\\filesystem\\FileBrowser'); $this->zibo = new Zibo($browser, $configMock); }
public function setUp() { $browser = $this->getMock('zibo\\library\\filesystem\\browser\\Browser'); $configIOMock = new ConfigIOMock(); $systemConfigValues = array('session' => array('gc' => array('probability' => $this->sessionGcProbability, 'divisor' => $this->sessionGcDivisor), 'path' => $this->sessionPath, 'time' => $this->sessionTime)); $configIOMock->setValues('system', $systemConfigValues); Zibo::getInstance($browser, $configIOMock); }
public function setUp() { $this->io = new IOMock(); $this->negotiator = new HttpNegotiator(); $browser = new GenericBrowser(new File(getcwd())); $configIO = new ConfigIOMock(); $configIO->setValues('i18n', array('locale' => array('order' => 'en,du,fr'))); $this->zibo = Zibo::getInstance($browser, $configIO); }
public function setUp() { $this->englishLocale = new Locale('en', 'English', 'English', 'return $n != 1;'); $configIOMock = new ConfigIOMock(); $browser = new GenericBrowser(new File(getcwd())); $values = array('translation' => array('io' => 'zibo\\library\\i18n\\translation\\io\\IOMock')); $configIOMock->setValues('i18n', $values); Zibo::getInstance($browser, $configIOMock); $this->manager = new Manager(); }
public function setUp() { $browser = new GenericFileBrowser(new File(getcwd())); $configIO = new ConfigIOMock(); $configIO->setValues('i18n', array('locale' => array('order' => 'en,du,fr'))); $this->zibo = new Zibo($browser, $configIO); $io = new IOMock(); $this->manager = new LocaleManager($io); $this->negotiator = new HttpNegotiator($this->zibo); }