Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 24 Aug 2025 10:36:54
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/App/Utility/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/App/Utility/AggregateInvoker.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\App\Utility; /** * Runs given callback across given array of data and collects all PhpUnit assertion results. * Should be used in case data provider is huge to minimize overhead. */ class AggregateInvoker { /** * @var \PHPUnit\Framework\TestCase */ protected $_testCase; /** * There is no PHPUnit internal API to determine whether --verbose or --debug options are passed. * When verbose is true, data sets are gathered for any result, includind incomplete and skipped test. * Only data sets for failed assertions are gathered otherwise. * * @var array */ protected $_options = ['verbose' => false]; /** * @param \PHPUnit\Framework\TestCase $testCase * @param array $options */ public function __construct($testCase, array $options = []) { $this->_testCase = $testCase; $this->_options = $options + $this->_options; } /** * Collect all failed assertions and fail test in case such list is not empty. * Incomplete and skipped test results are aggregated as well. * * @param callable $callback * @param array[] $dataSource * @return void */ public function __invoke(callable $callback, array $dataSource) { $results = [ \PHPUnit\Framework\IncompleteTestError::class => [], \PHPUnit\Framework\SkippedTestError::class => [], \PHPUnit\Framework\AssertionFailedError::class => [], ]; $passed = 0; foreach ($dataSource as $dataSetName => $dataSet) { try { call_user_func_array($callback, $dataSet); $passed++; } catch (\PHPUnit\Framework\IncompleteTestError $exception) { $results[get_class($exception)][] = $this->prepareMessage($exception, $dataSetName, $dataSet); } catch (\PHPUnit\Framework\SkippedTestError $exception) { $results[get_class($exception)][] = $this->prepareMessage($exception, $dataSetName, $dataSet); } catch (\PHPUnit\Framework\AssertionFailedError $exception) { $results[\PHPUnit\Framework\AssertionFailedError::class][] = $this->prepareMessage( $exception, $dataSetName, $dataSet ); } } $this->processResults($results, $passed); } /** * @param \Exception $exception * @param string $dataSetName * @param mixed $dataSet * @return string */ protected function prepareMessage(\Exception $exception, $dataSetName, $dataSet) { if (!is_string($dataSetName)) { $dataSetName = var_export($dataSet, true); } if ($exception instanceof \PHPUnit\Framework\AssertionFailedError && !$exception instanceof \PHPUnit\Framework\IncompleteTestError && !$exception instanceof \PHPUnit\Framework\SkippedTestError || $this->_options['verbose']) { $dataSetName = 'Data set: ' . $dataSetName . PHP_EOL; } else { $dataSetName = ''; } return $dataSetName . $exception->getMessage() . PHP_EOL . \PHPUnit\Util\Filter::getFilteredStacktrace($exception); } /** * Analyze results of aggregated tests execution and complete test case appropriately * * @param array $results * @param int $passed * @return void */ protected function processResults(array $results, $passed) { $totalCountsMessage = sprintf( 'Passed: %d, Failed: %d, Incomplete: %d, Skipped: %d.', $passed, count($results[\PHPUnit\Framework\AssertionFailedError::class]), count($results[\PHPUnit\Framework\IncompleteTestError::class]), count($results[\PHPUnit\Framework\SkippedTestError::class]) ); if ($results[\PHPUnit\Framework\AssertionFailedError::class]) { $this->_testCase->fail( $totalCountsMessage . PHP_EOL . implode(PHP_EOL, $results[\PHPUnit\Framework\AssertionFailedError::class]) ); } if (!$results[\PHPUnit\Framework\IncompleteTestError::class] && !$results[\PHPUnit\Framework\SkippedTestError::class]) { return; } $message = $totalCountsMessage . PHP_EOL . implode( PHP_EOL, $results[\PHPUnit\Framework\IncompleteTestError::class] ) . PHP_EOL . implode( PHP_EOL, $results[\PHPUnit\Framework\SkippedTestError::class] ); if ($results[\PHPUnit\Framework\IncompleteTestError::class]) { $this->_testCase->markTestIncomplete($message); } elseif ($results[\PHPUnit\Framework\SkippedTestError::class]) { $this->_testCase->markTestSkipped($message); } } }