Skip to content

Commit f32dc03

Browse files
authored
[12.x] Test Improvements (#57031)
* [12.x] CI Improvements Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 7b5e185 commit f32dc03

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ jobs:
7676
- name: Set Framework version
7777
run: composer config version "12.x-dev"
7878

79+
- name: Set Minimum dependencies for `prefer-lowest`
80+
uses: nick-fields/retry@v3
81+
with:
82+
timeout_minutes: 5
83+
max_attempts: 5
84+
command: composer require opis/string:2.0.1 --no-interaction --no-update
85+
shell: bash
86+
if: matrix.stability == 'prefer-lowest'
87+
7988
- name: Install dependencies
8089
uses: nick-fields/retry@v3
8190
with:
@@ -145,6 +154,15 @@ jobs:
145154
- name: Set Framework version
146155
run: composer config version "12.x-dev"
147156

157+
- name: Set Minimum dependencies for `prefer-lowest`
158+
uses: nick-fields/retry@v3
159+
with:
160+
timeout_minutes: 5
161+
max_attempts: 5
162+
command: composer require opis/string:2.0.1 --no-interaction --no-update
163+
shell: bash
164+
if: matrix.stability == 'prefer-lowest'
165+
148166
- name: Install dependencies
149167
uses: nick-fields/retry@v3
150168
with:

tests/Support/SupportStrTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212

1313
class SupportStrTest extends TestCase
1414
{
15+
/** {@inheritdoc} */
16+
#[\Override]
17+
protected function tearDown(): void
18+
{
19+
Str::createRandomStringsNormally();
20+
}
21+
1522
public function testStringCanBeLimitedByWords(): void
1623
{
1724
$this->assertSame('Taylor...', Str::words('Taylor Otwell', 1));

0 commit comments

Comments
 (0)