public function test_object_is_invalid_key_type() { $this->expectException(InvalidArgumentException::class); $d = new Dictionary('object', 'int'); }