Esempio n. 1
0
<?php

// Here you can initialize variables that will for your tests
\Codeception\Util\Autoload::registerSuffix('Page', __DIR__ . DIRECTORY_SEPARATOR . '_pages');
\Codeception\Util\Autoload::registerSuffix('Steps', __DIR__ . DIRECTORY_SEPARATOR . '_steps');
<?php

// This is global bootstrap for autoloading
\Codeception\Util\Autoload::registerSuffix('Base', __DIR__ . DIRECTORY_SEPARATOR . 'functional' . DIRECTORY_SEPARATOR . '_base_class');
Esempio n. 3
0
<?php

// Here you can initialize variables that will for your tests
\Codeception\Util\Autoload::registerSuffix('Page', __DIR__ . DIRECTORY_SEPARATOR . '_pages');
Esempio n. 4
0
 protected static function autoloadHelpers()
 {
     Autoload::registerSuffix('Helper', self::helpersDir());
 }
Esempio n. 5
0
<?php

// Here you can initialize variables that will be available to your tests
\Codeception\Util\Autoload::registerSuffix('Page', __DIR__ . DIRECTORY_SEPARATOR . 'installation/_pages');
\Codeception\Util\Autoload::registerSuffix('Page', __DIR__ . DIRECTORY_SEPARATOR . 'administrator/_pages');
\Codeception\Util\Autoload::registerSuffix('Page', __DIR__ . DIRECTORY_SEPARATOR . 'administrator/_pages/system');
\Codeception\Util\Autoload::registerSuffix('Steps', __DIR__ . DIRECTORY_SEPARATOR . 'installation/_steps/');
\Codeception\Util\Autoload::registerSuffix('Steps', __DIR__ . DIRECTORY_SEPARATOR . 'administrator/_steps/');
Esempio n. 6
0
<?php

// Here you can initialize variables that will for your tests
\Codeception\Util\Autoload::registerSuffix('Group', __DIR__ . DIRECTORY_SEPARATOR . '_groups');
date_default_timezone_set('Europe/Paris');
Esempio n. 7
0
 protected static function autoloadHelpers()
 {
     Autoload::registerSuffix('Helper', \Codeception\Configuration::helpersDir());
 }
Esempio n. 8
0
<?php

use Codeception\Util\Autoload;
// no utf without this
setlocale(LC_ALL, 'en_US.UTF8');
// This is global bootstrap for autoloading
$ds = DIRECTORY_SEPARATOR;
Autoload::registerSuffix('Page', implode($ds, array(__DIR__, '_pages')));
Autoload::registerSuffix('Helper', implode($ds, array(__DIR__, '_support', 'helpers')));
// this shit sucks
// Yii isn't found by standard composer autoload
require_once dirname(__DIR__) . '/boot/testing-console.php';
require_once __DIR__ . '/_data/YiiBridge/yiit.php';
launch_codeception_yii_bridge();
#require_once dirname(__DIR__).'/vendor/codeception/codeception/Platform/RunFailed.php';
$helper = new \Codeception\Module\BootstrapHelper();
$helper->bootstrap();