/** * @expectedException \Cartalyst\Sentinel\Checkpoints\ThrottlingException */ public function testFailedLogin() { $checkpoint = new ThrottleCheckpoint($throttle = m::mock('Cartalyst\\Sentinel\\Throttling\\IlluminateThrottleRepository')); $throttle->shouldReceive('globalDelay')->once()->andReturn(10); $checkpoint->login(m::mock('Cartalyst\\Sentinel\\Users\\EloquentUser')); }