LeKoala\DebugBar\Test\Collector\TimeDataCollectorTest
Synopsis
class TimeDataCollectorTest
extends SapphireTest
{
- // members
- protected DebugBarTimeDataCollector $collector;
- // methods
- public void setUp()
- public void tearDown()
- public void testCollectorTooltip()
- public void testDangerOnVerySlowRequest()
- public void testWarningOnSlowRequest()
- public void testOkOnNormalRequest()
- public void testWarningCanBeDisabled()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
Methods
public
- setUp()
- tearDown()
- testCollectorTooltip()
- testDangerOnVerySlowRequest() — Deliberately low threshold - should return a danger result
- testOkOnNormalRequest() — Deliberately high threshold and high ratio - should return an "ok" result
- testWarningCanBeDisabled()
- testWarningOnSlowRequest() — Deliberately high threshold and low ratio - should return a warning result