/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
vendor
/
mirko-pagliai
/
cakephp-thumber
/
tests
/
/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/cakephp-thumber/tests
mkdir
upload
Name
Size
Mode
Actions
TestCase/
-
0755
rm
test_app/
-
0755
rm
bootstrap.php
2717
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/cakephp-thumber/tests/bootstrap.php
(2717B)
<?php declare(strict_types=1); /** * This file is part of cakephp-thumber. * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Mirko Pagliai * @link https://github.com/mirko-pagliai/cakephp-thumber * @license https://opensource.org/licenses/mit-license.php MIT License */ use Cake\Cache\Cache; use Cake\Core\Configure; ini_set('intl.default_locale', 'en_US'); date_default_timezone_set('UTC'); mb_internal_encoding('UTF-8'); define('ROOT', dirname(__DIR__) . DS); define('CAKE_CORE_INCLUDE_PATH', ROOT . 'vendor' . DS . 'cakephp' . DS . 'cakephp'); define('CORE_PATH', ROOT . 'vendor' . DS . 'cakephp' . DS . 'cakephp' . DS); define('CAKE', CORE_PATH . 'src' . DS); define('TESTS', ROOT . 'tests' . DS); define('APP', ROOT . 'tests' . DS . 'test_app' . DS); define('APP_DIR', 'test_app' . DS); define('WEBROOT_DIR', 'webroot' . DS); define('WWW_ROOT', APP . 'webroot' . DS); define('TMP', sys_get_temp_dir() . DS . 'cakephp-thumber' . DS); define('CONFIG', APP . 'config' . DS); define('CACHE', TMP . 'cache' . DS); define('LOGS', TMP . 'logs' . DS); define('SESSIONS', TMP . 'sessions' . DS); @mkdir(TMP); @mkdir(LOGS); @mkdir(SESSIONS); @mkdir(CACHE); @mkdir(CACHE . 'views'); @mkdir(CACHE . 'models'); require dirname(__DIR__) . '/vendor/autoload.php'; require CORE_PATH . 'config' . DS . 'bootstrap.php'; Configure::write('debug', true); Configure::write('App', [ 'namespace' => 'App', 'encoding' => 'UTF-8', 'base' => false, 'baseUrl' => false, 'dir' => APP_DIR, 'webroot' => 'webroot', 'wwwRoot' => WWW_ROOT, 'fullBaseUrl' => 'http://localhost', 'imageBaseUrl' => 'img/', 'jsBaseUrl' => 'js/', 'cssBaseUrl' => 'css/', 'paths' => ['plugins' => [APP . 'Plugin' . DS]], ]); Cache::setConfig([ '_cake_core_' => [ 'engine' => 'File', 'prefix' => 'cake_core_', 'serialize' => true, ], ]); Configure::write('pluginsToLoad', ['Thumber\\Cake\\Plugin']); if (!getenv('THUMBER_DRIVER')) { putenv('THUMBER_DRIVER=' . (extension_loaded('imagick') ? 'imagick' : 'gd')); } Configure::write('Thumber.driver', getenv('THUMBER_DRIVER')); define('THUMBER_EXAMPLE_DIR', ROOT . 'vendor' . DS . 'mirko-pagliai' . DS . 'php-thumber' . DS . 'tests' . DS . 'examples' . DS); define('THUMBER_COMPARING_DIR', THUMBER_EXAMPLE_DIR . 'comparing_files' . DS . getenv('THUMBER_DRIVER') . DS); define('THUMBER_TARGET', Configure::read('Thumber.target', TMP . 'thumbs')); $_SERVER['PHP_SELF'] = '/'; echo 'Running tests for "' . getenv('THUMBER_DRIVER') . '" driver ' . PHP_EOL;
Save
cmd:
run