SilverStripe\TestSession\TestSessionState
The session state keeps some metadata about the current test session.
This may allow the client (Behat) to get some insight into the
server side affairs (e.g. if the server is handling some number requests at the moment).
The client side (Behat) must not use this class straightforwardly, but rather
rely on the API of or .
Synopsis
class TestSessionState
extends DataObject
{
- // members
- private static string $table_name = 'TestSessionState';
- private static array $db = ;
- // methods
- public static void incrementState()
- public static void decrementState()
- public static float millitime()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $table_name
Methods
public
- decrementState() — Decrements TestSessionState.PendingRequests number by 1 to indicate we have one more request in progress.
- incrementState() — Increments TestSessionState.PendingRequests number by 1 to indicate we have one more request in progress
- millitime() — Returns unix timestamp in milliseconds