Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for Arr::reject method in Illuminate Support #54863

Merged

Conversation

mohammadrasoulasghari
Copy link
Contributor

In this PR, test have been added for the reject method in Arr and Illuminate Support, and there was no test for this method before. It tests the correct functionality of the method.

This commit adds test coverage for the Arr::reject method which filters
an array using the negation of a given callback. The test verifies:

- Basic rejection behavior with sequential arrays
- Key preservation with associative arrays
@taylorotwell taylorotwell merged commit 5645879 into laravel:12.x Mar 3, 2025
41 checks passed
@mohammadrasoulasghari mohammadrasoulasghari deleted the feature/add-arr-reject-test branch March 6, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants