Skip to content

Commit 731d639

Browse files
authored
Merge pull request #2969 from tarlepp/chore/test-classes-to-final
Chore(test) - Make test classes to be `final`
2 parents b38ba48 + 15724cc commit 731d639

File tree

247 files changed

+255
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+255
-246
lines changed

compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ services:
22
php:
33
container_name: symfony-backend-php-fpm
44
hostname: php-fpm
5+
stop_signal: SIGKILL
56
build:
67
context: .
78
dockerfile: ./Dockerfile_dev
@@ -26,6 +27,7 @@ services:
2627
nginx:
2728
container_name: symfony-backend-nginx
2829
hostname: nginx
30+
stop_signal: SIGKILL
2931
build:
3032
context: ./docker/nginx/
3133
dockerfile: ./Dockerfile_dev
@@ -44,6 +46,7 @@ services:
4446
mariadb:
4547
container_name: symfony-backend-mariadb
4648
hostname: mariadb
49+
stop_signal: SIGKILL
4750
build:
4851
context: ./docker/mariadb/
4952
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
@@ -58,6 +61,7 @@ services:
5861
container_name: symfony-backend-dozzle
5962
hostname: dozzle
6063
image: amir20/dozzle
64+
stop_signal: SIGKILL
6165
ports:
6266
- "8100:8080"
6367
volumes:
@@ -67,6 +71,7 @@ services:
6771
container_name: symfony-backend-adminer
6872
hostname: adminer
6973
image: adminer
74+
stop_signal: SIGKILL
7075
environment:
7176
ADMINER_DEFAULT_SERVER: mariadb
7277
ADMINER_DESIGN: pepa-linha-dark

psalm.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
</errorLevel>
3131
</ArgumentTypeCoercion>
3232

33-
<ClassMustBeFinal errorLevel="suppress" />
33+
<ClassMustBeFinal>
34+
<errorLevel type="suppress">
35+
<directory name="src" />
36+
</errorLevel>
37+
</ClassMustBeFinal>
3438

3539
<ImplicitToStringCast>
3640
<errorLevel type="suppress">

tests/DataFixtures/AppFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package App\DataFixtures
1717
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
1818
*/
19-
class AppFixtures extends Fixture
19+
final class AppFixtures extends Fixture
2020
{
2121
#[Override]
2222
public function load(ObjectManager $manager): void

tests/E2E/Controller/HealthzControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Controller
1818
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
1919
*/
20-
class HealthzControllerTest extends WebTestCase
20+
final class HealthzControllerTest extends WebTestCase
2121
{
2222
/**
2323
* @throws Throwable

tests/E2E/Controller/IndexControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package App\Tests\E2E\Controller
1717
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
1818
*/
19-
class IndexControllerTest extends WebTestCase
19+
final class IndexControllerTest extends WebTestCase
2020
{
2121
/**
2222
* @throws Throwable

tests/E2E/Controller/VersionControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller
2020
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
2121
*/
22-
class VersionControllerTest extends WebTestCase
22+
final class VersionControllerTest extends WebTestCase
2323
{
2424
/**
2525
* @throws Throwable

tests/E2E/Controller/v1/ApiKey/ApiKeyControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\ApiKey
2020
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
2121
*/
22-
class ApiKeyControllerTest extends WebTestCase
22+
final class ApiKeyControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/api_key';
2525

tests/E2E/Controller/v1/Auth/GetTokenControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @package App\Tests\E2E\Controller\v1\Auth
2323
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
2424
*/
25-
class GetTokenControllerTest extends WebTestCase
25+
final class GetTokenControllerTest extends WebTestCase
2626
{
2727
private string $baseUrl = '/v1/auth/get_token';
2828

tests/E2E/Controller/v1/Auth/LoginFailureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @package App\Tests\E2E\Controller\v1\Auth
2222
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
2323
*/
24-
class LoginFailureTest extends WebTestCase
24+
final class LoginFailureTest extends WebTestCase
2525
{
2626
private string $baseUrl = '/v1/auth/get_token';
2727

tests/E2E/Controller/v1/Localization/LanguageControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\Localization
2020
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
2121
*/
22-
class LanguageControllerTest extends WebTestCase
22+
final class LanguageControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/localization/language';
2525

0 commit comments

Comments
 (0)