expectException(Exception\InvariantViolationException::class); $this->expectExceptionMessage('Expected a non-negative length.'); SecureRandom\bytes(-1); } }