expectException(Psl\Exception\InvariantViolationException::class); $this->expectExceptionMessage('Length must be non-negative.'); Iter\take([1, 2, 3], -3); } }