Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:10.xfrom
salehhashemi1992:test/str-take-function-tests
Oct 16, 2023
Merged

[10.x] Extend Test Coverage for Str::take Function#48728
taylorotwell merged 1 commit into
laravel:10.xfrom
salehhashemi1992:test/str-take-function-tests

Conversation

@salehhashemi1992

@salehhashemi1992 salehhashemi1992 commented Oct 14, 2023

Copy link
Copy Markdown
Contributor

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
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