Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testActions (array $actions, array $expected) | |
actionsDataProvider () | |
testGetWithInvalidTimer () | |
testStopWithInvalidTimer () | |
testClear () | |
testTimersSorting ($timers, $expectedTimerIds) | |
timersSortingDataProvider () | |
testTimersFiltering ($timers, $thresholds, $filterPattern, $expectedTimerIds) | |
timersFilteringDataProvider () | |
fetchDataProvider () | |
testFetchInvalidTimer () | |
testFetchInvalidKey () | |
Protected Member Functions | |
setUp () | |
_executeTimerAction ($action, $timerId, $time=0, $realMemory=0, $emallocMemory=0) | |
Protected Attributes | |
$_stat | |
Definition at line 10 of file StatTest.php.
|
protected |
Executes stop or start methods on $_stat object
string | $action | |
string | $timerId | |
int | $time | |
int | $realMemory | |
int | $emallocMemory |
Definition at line 424 of file StatTest.php.
actionsDataProvider | ( | ) |
fetchDataProvider | ( | ) |
|
protected |
Definition at line 17 of file StatTest.php.
testActions | ( | array | $actions, |
array | $expected | ||
) |
Test start and stop methods of \Magento\Framework\Profiler\Driver\Standard\Stat
@dataProvider actionsDataProvider
array | $actions | |
array | $expected |
Definition at line 29 of file StatTest.php.
testClear | ( | ) |
testFetchInvalidKey | ( | ) |
@expectedException \InvalidArgumentException @expectedMessage Timer "foo" doesn't have value for "bar".
Definition at line 409 of file StatTest.php.
testFetchInvalidTimer | ( | ) |
@expectedException \InvalidArgumentException @expectedMessage Timer "foo" doesn't exist.
Definition at line 400 of file StatTest.php.
testGetWithInvalidTimer | ( | ) |
Test get method with invalid timer id
@expectedException \InvalidArgumentException @expectedExceptionMessage Timer "unknown_timer" doesn't exist.
Definition at line 144 of file StatTest.php.
testStopWithInvalidTimer | ( | ) |
Test stop method with invalid timer id
@expectedException \InvalidArgumentException @expectedExceptionMessage Timer "unknown_timer" doesn't exist.
Definition at line 155 of file StatTest.php.
testTimersFiltering | ( | $timers, | |
$thresholds, | |||
$filterPattern, | |||
$expectedTimerIds | |||
) |
Test getFilteredTimerIds for filtering
@dataProvider timersFilteringDataProvider
array | $timers | |
array | $thresholds | |
string | $filterPattern | |
array | $expectedTimerIds |
Definition at line 258 of file StatTest.php.
testTimersSorting | ( | $timers, | |
$expectedTimerIds | |||
) |
Test getFilteredTimerIds for sorting
@dataProvider timersSortingDataProvider
array | $timers | |
array | $expectedTimerIds |
Definition at line 184 of file StatTest.php.
timersFilteringDataProvider | ( | ) |
timersSortingDataProvider | ( | ) |
|
protected |
Definition at line 15 of file StatTest.php.