Skip to content

Time

static function(Assert $assert) {
    $assert
        ->time(static function() {
            // execute your code here
        })
        ->inLessThan()
        ->milliseconds($number, 'Optional error message');
}
static function(Assert $assert) {
    $assert
        ->time(static function() {
            // execute your code here
        })
        ->inLessThan()
        ->seconds($number, 'Optional error message');
}
static function(Assert $assert) {
    $assert
        ->time(static function() {
            // execute your code here
        })
        ->inMoreThan()
        ->milliseconds($number, 'Optional error message');
}
static function(Assert $assert) {
    $assert
        ->time(static function() {
            // execute your code here
        })
        ->inMoreThan()
        ->seconds($number, 'Optional error message');
}