2 declare(strict_types = 1);
19 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
33 $GLOBALS[
'TYPO3_MISC'][
'microtime_start'],
34 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_start'],
35 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_end']
38 self::assertLessThanOrEqual(1, $parseTime);
47 $GLOBALS[
'TYPO3_MISC'][
'microtime_start'] = $baseValue;
48 $GLOBALS[
'TYPO3_MISC'][
'microtime_end'] = $baseValue + 10;
49 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_start'] = $baseValue + 1;
50 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_end'] = $baseValue + 3;
52 self::assertSame(8000, $parseTime);
61 $GLOBALS[
'TYPO3_MISC'][
'microtime_start'] = $baseValue;
62 $GLOBALS[
'TYPO3_MISC'][
'microtime_end'] = $baseValue + 10;
63 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_start'] = $baseValue + 1;
64 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_end'] = 0;
66 self::assertSame(10000, $parseTime);
75 $GLOBALS[
'TYPO3_MISC'][
'microtime_start'] = $baseValue;
76 $GLOBALS[
'TYPO3_MISC'][
'microtime_end'] = $baseValue + 10;
77 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_start'] = 0;
78 $GLOBALS[
'TYPO3_MISC'][
'microtime_BE_USER_end'] = 0;
80 self::assertSame(10000, $parseTime);