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