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