Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ jobs:
- name: Set Framework version
run: composer config version "12.x-dev"

- name: Set Minimum dependencies for `prefer-lowest`
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer require opis/string:2.0.1 --no-interaction --no-update
shell: bash
if: matrix.stability == 'prefer-lowest'

- name: Install dependencies
uses: nick-fields/retry@v3
with:
Expand Down Expand Up @@ -145,6 +154,15 @@ jobs:
- name: Set Framework version
run: composer config version "12.x-dev"

- name: Set Minimum dependencies for `prefer-lowest`
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer require opis/string:2.0.1 --no-interaction --no-update
shell: bash
if: matrix.stability == 'prefer-lowest'

- name: Install dependencies
uses: nick-fields/retry@v3
with:
Expand Down
7 changes: 7 additions & 0 deletions tests/Support/SupportStrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@

class SupportStrTest extends TestCase
{
/** {@inheritdoc} */
#[\Override]
protected function tearDown(): void
{
Str::createRandomStringsNormally();
}

public function testStringCanBeLimitedByWords(): void
{
$this->assertSame('Taylor...', Str::words('Taylor Otwell', 1));
Expand Down