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

[10.x] Extend Test Coverage for Str::take Function #48728

Merged

Conversation

salehhashemi1992
Copy link
Contributor

@salehhashemi1992 salehhashemi1992 commented Oct 14, 2023

Extend the test coverage for the Str::take function to include additional edge cases.

Tests that are added

  • test for $limit = 0
  • test for an empty string as $string
  • test for $limit > strlen($string)
  • test for $limit = strlen($string)
  • test for multi-byte characters in $string

@salehhashemi1992 salehhashemi1992 marked this pull request as ready for review October 14, 2023 20:02
@taylorotwell taylorotwell merged commit cdcb9ca into laravel:10.x Oct 16, 2023
20 checks passed
timacdonald pushed a commit to timacdonald/framework that referenced this pull request Oct 24, 2023
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.

2 participants