shouldSend('alice', 'rule', 'info@example.com', 'sender@example.com', 60)); $state->record('alice', 'rule', 'info@example.com', 'sender@example.com'); assert_false($state->shouldSend('alice', 'rule', 'info@example.com', 'sender@example.com', 60)); $later = new RepeatState(TEST_TMP . '/state', 5000); assert_true($later->shouldSend('alice', 'rule', 'info@example.com', 'sender@example.com', 60)); });