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
magento2-base
dev
tests
integration
framework
tests
unit
testsuite
Magento
Test
Profiler
OutputBambooTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Test\Profiler
;
7
11
require_once
__DIR__
.
'/OutputBambooTestFilter.php'
;
12
class
OutputBambooTest
extends
\PHPUnit\Framework\TestCase
13
{
17
protected
$_output
;
18
19
public
static
function
setUpBeforeClass
()
20
{
21
stream_filter_register(
'dataCollectorFilter'
, \
Magento
\Test\Profiler\OutputBambooTestFilter::class);
22
}
23
27
protected
function
setUp
()
28
{
29
\Magento\Test\Profiler\OutputBambooTestFilter::resetCollectedData
();
30
34
$this->_output = new \Magento\TestFramework\Profiler\OutputBamboo(
35
[
36
'filePath'
=>
'php://filter/write=dataCollectorFilter/resource=php://memory'
,
37
'metrics'
=> [
'sample metric (ms)'
=> [
'profiler_key_for_sample_metric'
]],
38
]
39
);
40
}
41
42
public
function
testDisplay
()
43
{
44
$this->_output->display(
new
\
Magento
\Framework\Profiler\
Driver
\Standard\Stat());
45
\Magento\Test\Profiler\OutputBambooTestFilter::assertCollectedData
(
"Timestamp,\"sample metric (ms)\"\n%d,%d"
);
46
}
47
}
Magento\Test\Profiler\OutputBambooTest\setUp
setUp()
Definition:
OutputBambooTest.php:27
Magento\Test\Profiler\OutputBambooTest\testDisplay
testDisplay()
Definition:
OutputBambooTest.php:42
Magento\Test\Profiler\OutputBambooTestFilter\assertCollectedData
static assertCollectedData($expectedData)
Definition:
OutputBambooTestFilter.php:50
Magento\Test\Profiler\OutputBambooTestFilter\resetCollectedData
static resetCollectedData()
Definition:
OutputBambooTestFilter.php:40
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
Magento\Test\Profiler\OutputBambooTest\setUpBeforeClass
static setUpBeforeClass()
Definition:
OutputBambooTest.php:19
Magento\Test\Profiler\OutputBambooTest
Definition:
OutputBambooTest.php:12
Magento\Test\Profiler
Definition:
OutputBambooTest.php:6
Magento\Test\Profiler\OutputBambooTest\$_output
$_output
Definition:
OutputBambooTest.php:17
Magento\Framework\Shell\Driver
Definition:
Driver.php:14
Magento