Go to the source code of this file.
◆ setCustomErrorHandler()
catch (\Exception $e) setCustomErrorHandler |
( |
| ) |
|
Set custom error handler
Definition at line 109 of file bootstrap.php.
112 function ($errNo, $errStr, $errFile, $errLine) {
113 if (error_reporting()) {
116 E_WARNING =>
'Warning',
118 E_NOTICE =>
'Notice',
119 E_CORE_ERROR =>
'Core Error',
120 E_CORE_WARNING =>
'Core Warning',
121 E_COMPILE_ERROR =>
'Compile Error',
122 E_COMPILE_WARNING =>
'Compile Warning',
123 E_USER_ERROR =>
'User Error',
124 E_USER_WARNING =>
'User Warning',
125 E_USER_NOTICE =>
'User Notice',
126 E_STRICT =>
'Strict',
127 E_RECOVERABLE_ERROR =>
'Recoverable Error',
128 E_DEPRECATED =>
'Deprecated',
129 E_USER_DEPRECATED =>
'User Deprecated',
132 $errName = isset($errorNames[$errNo]) ? $errorNames[$errNo] :
"";
134 throw new \PHPUnit\Framework\Exception(
135 sprintf(
"%s: %s in %s:%s.", $errName, $errStr, $errFile, $errLine),
◆ $application
Initial value:= new \Magento\TestFramework\Application(
AutoloaderRegistry::getAutoloader(),
true
)
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell
if(!file_exists($installConfigFile)) $globalConfigFile
Definition at line 56 of file bootstrap.php.
◆ $bootstrap
Initial value:= new \Magento\TestFramework\Bootstrap(
new \
Magento\TestFramework\Bootstrap\Environment(),
new \
Magento\TestFramework\Bootstrap\DocBlock(
"{$testsBaseDir}/testsuite"),
new \
Magento\TestFramework\Bootstrap\Profiler(
new \
Magento\Framework\Profiler\Driver\Standard()),
)
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell
Definition at line 67 of file bootstrap.php.
◆ $dirSearch
Initial value: ->create(\
Magento\Framework\Component\DirSearch::class)
static getObjectManager()
Definition at line 87 of file bootstrap.php.
◆ $fixtureBaseDir
$fixtureBaseDir = $testsBaseDir. '/testsuite' |
◆ $globalConfigFile
if (!file_exists( $installConfigFile)) $globalConfigFile = $settings->getAsConfigFile('TESTS_GLOBAL_CONFIG_FILE') |
◆ $installConfigFile
$installConfigFile = $settings->getAsConfigFile('TESTS_INSTALL_CONFIG_FILE') |
◆ $installDir
$installDir = TESTS_TEMP_DIR . "/sandbox-{$settings->get('TESTS_PARALLEL_THREAD', 0)}-{$sandboxUniqueId}" |
◆ $sandboxUniqueId
if (!file_exists( $globalConfigFile)) $sandboxUniqueId = md5(sha1_file($installConfigFile)) |
◆ $settings
◆ $testFrameworkDir
if (!defined( 'TESTS_TEMP_DIR')) if (!defined( 'INTEGRATION_TESTS_DIR')) $testFrameworkDir = __DIR__ |
◆ $testsBaseDir
◆ $themePackageList
Initial value: ->create(\
Magento\Framework\View\Design\Theme\ThemePackageList::class)
static getObjectManager()
Definition at line 89 of file bootstrap.php.
◆ else
if ( $settings->get( 'TESTS_EXTRA_VERBOSE_LOG')) else |
Initial value:{
$shell = new \Magento\Framework\Shell(
new \
Magento\Framework\Shell\CommandRenderer())
if(!file_exists($installConfigFile)) if(!defined('TESTS_INSTALLATION_DB_CONFIG_FILE')) $shell
Definition at line 42 of file bootstrap.php.
◆ try
Initial value:{
catch(\Exception $e) setCustomErrorHandler()
Definition at line 25 of file bootstrap.php.