Exemplo n.º 1
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     mkdir(__DIR__ . '/tmp-storage');
     file_put_contents(__DIR__ . '/dummy-file.txt', 'lorem');
     self::$storage = new Storage(array('mode' => 'development', 'application.files' => array('path' => __DIR__ . '/tmp-storage', 'img_manipulation_max_size' => '5MB', 'img_manipulation_max_dimensions' => '300x300', 'img_manipulation_quality' => 90)));
 }
Exemplo n.º 2
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$f = new \Rocker\Object\User\UserFactory(self::$db, new \Rocker\Cache\TempMemoryCache());
     self::$f->install();
 }
Exemplo n.º 3
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$f = new \Rocker\Object\ObjectMetaFactory('testCaseMeta', self::$db, new \Rocker\Cache\TempMemoryCache());
     self::$f->createTable();
 }