Skip to content

Commit 22ce55d

Browse files
committed
- Added Laravel 13 support
1 parent 247867a commit 22ce55d

5 files changed

Lines changed: 27 additions & 33 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
matrix:
1818
os: [ ubuntu-latest ]
1919
php: [ 8.4, 8.3, 8.2, 8.1 ]
20-
laravel: [ 12.*, 11.*, 10.*, 9.* ]
20+
laravel: [ 13.*, 12.*, 11.*, 10.*, 9.* ]
2121
stability: [ prefer-lowest, prefer-stable ]
2222
include:
23+
- laravel: 13.*
24+
testbench: 11.*
25+
carbon: ^3.8.4
2326
- laravel: 12.*
2427
testbench: 10.*
2528
carbon: ^3.8.4
2629
- laravel: 11.*
27-
testbench: 9.*
30+
testbench: ^9.16
2831
carbon: ^2.63
2932
- laravel: 10.*
3033
testbench: 8.*
@@ -33,6 +36,10 @@ jobs:
3336
testbench: 7.*
3437
carbon: ^2.63
3538
exclude:
39+
- laravel: 13.*
40+
php: 8.2
41+
- laravel: 13.*
42+
php: 8.1
3643
- laravel: 12.*
3744
php: 8.1
3845
- laravel: 11.*

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0"
20+
"illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0"
2121
},
2222
"require-dev": {
2323
"laravel/pint": "^1.14",
24-
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0 || ^10.0",
25-
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.5.3"
24+
"orchestra/testbench": "^7.0 || ^8.0 || ^9.16 || ^10.0 || ^11.0",
25+
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.5.3 || ^12.5.8 || ^13.0.3"
2626
},
2727
"autoload": {
2828
"psr-4": {

tests/Feature/Commands/GeneratesFilesTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ protected function tearDown(): void
2222
parent::tearDown();
2323
}
2424

25-
/** @test */
26-
public function it_can_generate_a_new_file(): void
25+
public function test_it_can_generate_a_new_file(): void
2726
{
2827
$expected_path = $this->app->databasePath('factories/CategoryFactory.php');
2928
$expected_content = $this->getTestStubContents('factories/CategoryFactory.php');
@@ -37,8 +36,7 @@ public function it_can_generate_a_new_file(): void
3736
$this->assertEquals($expected_content, $actual_content);
3837
}
3938

40-
/** @test */
41-
public function it_does_not_create_existing_files_without_the_force_option(): void
39+
public function test_it_does_not_create_existing_files_without_the_force_option(): void
4240
{
4341
$expected_path = $this->app->databasePath('factories/CategoryFactory.php');
4442

@@ -56,8 +54,7 @@ public function it_does_not_create_existing_files_without_the_force_option(): vo
5654
->expectsOutput($expected_path . ' already exists!');
5755
}
5856

59-
/** @test */
60-
public function it_over_writes_existing_files_with_the_force_option(): void
57+
public function test_it_over_writes_existing_files_with_the_force_option(): void
6158
{
6259
$this->partialMock(Filesystem::class, function (MockInterface $mock) {
6360
$mock->shouldReceive('exists')

tests/Unit/StringCaserTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
class StringCaserTest extends TestCase
99
{
10-
/** @test */
11-
public function it_can_generate_correct_string_cases_in_studly_format(): void
10+
public function test_it_can_generate_correct_string_cases_in_studly_format(): void
1211
{
1312
$name = 'FormInputField';
1413

@@ -34,8 +33,7 @@ public function it_can_generate_correct_string_cases_in_studly_format(): void
3433
$this->assertEquals('form input field', StringCaser::lower($name));
3534
}
3635

37-
/** @test */
38-
public function it_can_generate_correct_string_cases_in_snake_format(): void
36+
public function test_it_can_generate_correct_string_cases_in_snake_format(): void
3937
{
4038
$name = 'Form_input_Field';
4139

@@ -61,8 +59,7 @@ public function it_can_generate_correct_string_cases_in_snake_format(): void
6159
$this->assertEquals('form input field', StringCaser::lower($name));
6260
}
6361

64-
/** @test */
65-
public function it_can_generate_correct_string_cases_in_kebab_format(): void
62+
public function test_it_can_generate_correct_string_cases_in_kebab_format(): void
6663
{
6764
$name = 'form-input-field';
6865

tests/Unit/StubRendererTest.php

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
class StubRendererTest extends TestCase
99
{
10-
/** @test */
11-
public function it_can_replace_single_names(): void
10+
public function test_it_can_replace_single_names(): void
1211
{
1312
$renderer = $this->getRenderer();
1413

@@ -18,8 +17,7 @@ public function it_can_replace_single_names(): void
1817
$this->assertEquals($expected_content, $actual_content);
1918
}
2019

21-
/** @test */
22-
public function it_can_replace_multiple_names(): void
20+
public function test_it_can_replace_multiple_names(): void
2321
{
2422
$renderer = $this->getRenderer();
2523

@@ -29,8 +27,8 @@ public function it_can_replace_multiple_names(): void
2927
$this->assertEquals($expected_content, $actual_content);
3028
}
3129

32-
/** @test */
33-
public function it_can_replace_multiple_names_with_suffix(): void
30+
31+
public function test_it_can_replace_multiple_names_with_suffix(): void
3432
{
3533
$renderer = $this->getRenderer();
3634

@@ -40,8 +38,7 @@ public function it_can_replace_multiple_names_with_suffix(): void
4038
$this->assertEquals($expected_content, $actual_content);
4139
}
4240

43-
/** @test */
44-
public function it_can_replace_multiple_names_in_studly_format(): void
41+
public function test_it_can_replace_multiple_names_in_studly_format(): void
4542
{
4643
$renderer = $this->getRenderer();
4744

@@ -51,8 +48,7 @@ public function it_can_replace_multiple_names_in_studly_format(): void
5148
$this->assertEquals($expected_content, $actual_content);
5249
}
5350

54-
/** @test */
55-
public function it_can_replace_multiple_names_in_camel_format(): void
51+
public function test_it_can_replace_multiple_names_in_camel_format(): void
5652
{
5753
$renderer = $this->getRenderer();
5854

@@ -62,8 +58,7 @@ public function it_can_replace_multiple_names_in_camel_format(): void
6258
$this->assertEquals($expected_content, $actual_content);
6359
}
6460

65-
/** @test */
66-
public function it_can_append_to_a_stub_without_removing_marker(): void
61+
public function test_it_can_append_to_a_stub_without_removing_marker(): void
6762
{
6863
$renderer = $this->getRenderer();
6964

@@ -73,8 +68,7 @@ public function it_can_append_to_a_stub_without_removing_marker(): void
7368
$this->assertEquals($expected_content, $actual_content);
7469
}
7570

76-
/** @test */
77-
public function it_can_append_to_a_stub_with_removing_marker(): void
71+
public function test_it_can_append_to_a_stub_with_removing_marker(): void
7872
{
7973
$renderer = $this->getRenderer();
8074

@@ -84,8 +78,7 @@ public function it_can_append_to_a_stub_with_removing_marker(): void
8478
$this->assertEquals($expected_content, $actual_content);
8579
}
8680

87-
/** @test */
88-
public function it_can_add_indentation_to_multiple_lines(): void
81+
public function test_it_can_add_indentation_to_multiple_lines(): void
8982
{
9083
$renderer = $this->getRenderer();
9184

0 commit comments

Comments
 (0)