diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b7b518b14cb..3a2db5d673a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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: diff --git a/tests/Support/SupportStrTest.php b/tests/Support/SupportStrTest.php index cb36d9eb98c1..0f0075121b3e 100755 --- a/tests/Support/SupportStrTest.php +++ b/tests/Support/SupportStrTest.php @@ -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));