Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-message-queue
Test
Unit
_files
pid_consumer_functions_mocks.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\MessageQueue\Model\Cron\ConsumersRunner
;
7
12
function
posix_getpgid
($pid)
13
{
14
if
($pid === 11111) {
15
return
22222;
16
}
17
18
return
false
;
19
}
20
26
function
exec
($command, array &
$output
=
null
, &$return_var =
null
)
27
{
28
$output
= [
'PID TTY TIME CMD'
];
29
$return_var = 1;
30
31
if
($command ===
'ps -p 11111'
) {
32
$output
[] = [
'11111 ?? 25:49.42 /php'
];
33
$return_var = 0;
34
}
35
}
Magento\MessageQueue\Model\Cron\ConsumersRunner\exec
exec($command, array &$output=null, &$return_var=null)
Definition:
pid_consumer_functions_mocks.php:26
Magento\MessageQueue\Model\Cron\ConsumersRunner
Definition:
PidConsumerManager.php:6
Magento\MessageQueue\Model\Cron\ConsumersRunner\posix_getpgid
posix_getpgid($pid)
Definition:
pid_consumer_functions_mocks.php:12
$output
$output
Definition:
classmap_generator.php:100