File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 12
12
<config name =" php_version" value =" 70400" />
13
13
14
14
<file >src</file >
15
+ <file >tests</file >
15
16
16
17
<rule ref =" Doctrine" >
17
18
<exclude name =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes" />
22
23
</rule >
23
24
24
25
<rule ref =" PSR1.Classes.ClassDeclaration.MultipleClasses" >
25
- <exclude-pattern >Tests /*</exclude-pattern >
26
- <exclude-pattern >Repository/RepositoryFactoryCompatibility.php</exclude-pattern >
27
- <exclude-pattern >Repository/ServiceEntityRepository.php</exclude-pattern >
26
+ <exclude-pattern >tests /*</exclude-pattern >
27
+ <exclude-pattern >src/ Repository/RepositoryFactoryCompatibility.php</exclude-pattern >
28
+ <exclude-pattern >src/ Repository/ServiceEntityRepository.php</exclude-pattern >
28
29
</rule >
29
30
<rule ref =" Squiz.Classes.ClassFileName.NoMatch" >
30
- <exclude-pattern >Tests /*</exclude-pattern >
31
+ <exclude-pattern >tests /*</exclude-pattern >
31
32
</rule >
32
33
</ruleset >
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ public function testDbalLoadSinglePrimaryReplicaConnection(): void
240
240
241
241
public function testDbalLoadSavepointsForNestedTransactions (): void
242
242
{
243
- if (!method_exists (Connection::class, 'getEventManager ' )) {
243
+ if (! method_exists (Connection::class, 'getEventManager ' )) {
244
244
self ::markTestSkipped ('This test requires DBAL < 4 ' );
245
245
}
246
246
Original file line number Diff line number Diff line change @@ -558,10 +558,12 @@ public function testUseSavePointsAddMethodCallToAddSavepointsToTheConnection():
558
558
559
559
$ calls = $ container ->getDefinition ('doctrine.dbal.default_connection ' )->getMethodCalls ();
560
560
$ this ->assertCount ((int ) $ isUsingDBAL3 , $ calls );
561
- if ($ isUsingDBAL3 ) {
562
- $ this ->assertEquals ('setNestTransactionsWithSavepoints ' , $ calls [0 ][0 ]);
563
- $ this ->assertTrue ($ calls [0 ][1 ][0 ]);
561
+ if (! $ isUsingDBAL3 ) {
562
+ return ;
564
563
}
564
+
565
+ $ this ->assertEquals ('setNestTransactionsWithSavepoints ' , $ calls [0 ][0 ]);
566
+ $ this ->assertTrue ($ calls [0 ][1 ][0 ]);
565
567
}
566
568
567
569
public function testAutoGenerateProxyClasses (): void
You can’t perform that action at this time.
0 commit comments