Skip to content

Commit e09556b

Browse files
authored
Merge pull request #975 from greg0ire/shallower-tree
Use a shallower tree
2 parents f4a3687 + b53e0e2 commit e09556b

File tree

101 files changed

+47
-47
lines changed

Some content is hidden

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

101 files changed

+47
-47
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
logs/
22
reports/
33
dist/
4-
tests/Doctrine/Tests/Common/Proxy/generated/
4+
tests/Common/Proxy/generated/
55
composer.lock
66
vendor/
77
doctrine-common-*.tar

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
},
3434
"autoload": {
3535
"psr-4": {
36-
"Doctrine\\Common\\": "lib/Doctrine/Common"
36+
"Doctrine\\Common\\": "src"
3737
}
3838
},
3939
"autoload-dev": {
4040
"psr-4": {
41-
"Doctrine\\Tests\\": "tests/Doctrine/Tests"
41+
"Doctrine\\Tests\\": "tests"
4242
}
4343
},
4444
"config": {

phpcs.xml.dist

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
<!-- Ignore warnings and show progress of the run -->
1212
<arg value="np"/>
1313

14-
<file>lib</file>
14+
<file>src</file>
1515
<file>tests</file>
1616

17-
<exclude-pattern>tests/Doctrine/Tests/Common/Proxy/*</exclude-pattern>
18-
<exclude-pattern>tests/Doctrine/Tests/Common/ClassLoaderTest/*</exclude-pattern>
19-
<exclude-pattern>tests/Doctrine/Tests/Common/Util/TestAsset/*</exclude-pattern>
17+
<exclude-pattern>tests/Common/Proxy/*</exclude-pattern>
18+
<exclude-pattern>tests/Common/ClassLoaderTest/*</exclude-pattern>
19+
<exclude-pattern>tests/Common/Util/TestAsset/*</exclude-pattern>
2020

2121
<rule ref="Doctrine">
2222
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
@@ -37,7 +37,7 @@
3737
</rule>
3838

3939
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
40-
<exclude-pattern>*/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php</exclude-pattern>
40+
<exclude-pattern>*/tests/Common/Util/ClassUtilsTest.php</exclude-pattern>
4141
</rule>
4242

4343
<!-- Disable the rules that will require PHP 7.4 -->
@@ -48,28 +48,28 @@
4848
</rule>
4949

5050
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
51-
<exclude-pattern>*/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php</exclude-pattern>
51+
<exclude-pattern>*/tests/Common/Util/ClassUtilsTest.php</exclude-pattern>
5252
</rule>
5353

5454
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
5555
<exclude-pattern>*/tests/*</exclude-pattern>
5656
</rule>
5757

5858
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
59-
<exclude-pattern>tests/Doctrine/Tests/Common/ClassLoaderTest/*.class.php</exclude-pattern>
59+
<exclude-pattern>tests/Common/ClassLoaderTest/*.class.php</exclude-pattern>
6060
</rule>
6161
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
62-
<exclude-pattern>tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php</exclude-pattern>
63-
<exclude-pattern>tests/Doctrine/Tests/Common/ClassLoaderTest/*.class.php</exclude-pattern>
62+
<exclude-pattern>tests/Common/Util/ClassUtilsTest.php</exclude-pattern>
63+
<exclude-pattern>tests/Common/ClassLoaderTest/*.class.php</exclude-pattern>
6464
</rule>
6565
<rule ref="PEAR.Functions.ValidDefaultValue.NotAtEnd">
66-
<exclude-pattern>tests/Doctrine/Tests/Common/Proxy/*HintClass.php</exclude-pattern>
66+
<exclude-pattern>tests/Common/Proxy/*HintClass.php</exclude-pattern>
6767
</rule>
6868

6969
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
7070
<exclude-pattern>tests/*</exclude-pattern>
7171
</rule>
7272
<rule ref="Squiz.Commenting.FunctionComment.InvalidNoReturn">
73-
<exclude-pattern>tests/Doctrine/Tests/Common/Proxy/InvalidReturnTypeClass.php</exclude-pattern>
73+
<exclude-pattern>tests/Common/Proxy/InvalidReturnTypeClass.php</exclude-pattern>
7474
</rule>
7575
</ruleset>

phpstan.neon.dist

+26-26
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,57 @@ parameters:
22
phpVersion: 80100
33
level: 3
44
paths:
5-
- lib
5+
- src
66
- tests
77
excludePaths:
8-
- tests/Doctrine/Tests/Common/Proxy/InvalidReturnTypeClass.php
9-
- tests/Doctrine/Tests/Common/Proxy/InvalidTypeHintClass.php
10-
- tests/Doctrine/Tests/Common/Proxy/LazyLoadableObjectWithTypedProperties.php
11-
- tests/Doctrine/Tests/Common/Proxy/MagicIssetClassWithInteger.php
12-
- tests/Doctrine/Tests/Common/Proxy/NullableNonOptionalHintClass.php
13-
- tests/Doctrine/Tests/Common/Proxy/PHP81NeverType.php
14-
- tests/Doctrine/Tests/Common/Proxy/PHP81IntersectionTypes.php
15-
- tests/Doctrine/Tests/Common/Proxy/Php8UnionTypes.php
16-
- tests/Doctrine/Tests/Common/Proxy/Php8StaticType.php
17-
- tests/Doctrine/Tests/Common/Proxy/ProxyGeneratorTest.php
18-
- tests/Doctrine/Tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php
19-
- tests/Doctrine/Tests/Common/Proxy/SerializedClass.php
20-
- tests/Doctrine/Tests/Common/Proxy/VariadicTypeHintClass.php
21-
- tests/Doctrine/Tests/Common/Proxy/Php71NullableDefaultedNonOptionalHintClass.php
22-
- tests/Doctrine/Tests/Common/Proxy/generated
8+
- tests/Common/Proxy/InvalidReturnTypeClass.php
9+
- tests/Common/Proxy/InvalidTypeHintClass.php
10+
- tests/Common/Proxy/LazyLoadableObjectWithTypedProperties.php
11+
- tests/Common/Proxy/MagicIssetClassWithInteger.php
12+
- tests/Common/Proxy/NullableNonOptionalHintClass.php
13+
- tests/Common/Proxy/PHP81NeverType.php
14+
- tests/Common/Proxy/PHP81IntersectionTypes.php
15+
- tests/Common/Proxy/Php8UnionTypes.php
16+
- tests/Common/Proxy/Php8StaticType.php
17+
- tests/Common/Proxy/ProxyGeneratorTest.php
18+
- tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php
19+
- tests/Common/Proxy/SerializedClass.php
20+
- tests/Common/Proxy/VariadicTypeHintClass.php
21+
- tests/Common/Proxy/Php71NullableDefaultedNonOptionalHintClass.php
22+
- tests/Common/Proxy/generated
2323
ignoreErrors:
2424
- '#Access to an undefined property Doctrine\\Common\\Proxy\\Proxy::\$publicField#'
2525
-
2626
message: '#^Result of method Doctrine\\Tests\\Common\\Proxy\\LazyLoadableObjectWithVoid::(adding|incrementing)AndReturningVoid\(\) \(void\) is used\.$#'
27-
path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
27+
path: 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
2828
-
2929
message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#'
30-
path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php'
30+
path: 'tests/Common/Proxy/ProxyLogicTest.php'
3131
-
3232
message: '#.*LazyLoadableObject.*#'
3333
paths:
34-
- 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php'
35-
- 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
34+
- 'tests/Common/Proxy/ProxyLogicTest.php'
35+
- 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
3636
-
3737
message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#'
38-
path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php'
38+
path: 'tests/Common/Proxy/ProxyLogicTest.php'
3939
-
4040
message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#'
41-
path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
41+
path: 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
4242
-
4343
message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicVoidReturnTypeTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#'
44-
path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
44+
path: 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
4545
-
4646
message: '#^Method Doctrine\\Tests\\Common\\Proxy\\MagicIssetClassWithInteger::__isset\(\) should return bool but returns int\.$#'
47-
path: 'tests/Doctrine/Tests/Common/Proxy/MagicIssetClassWithInteger.php'
47+
path: 'tests/Common/Proxy/MagicIssetClassWithInteger.php'
4848
-
4949
message: '#^Access to an undefined property Doctrine\\Tests\\Common\\Proxy\\MagicGetByRefClass\:\:\$nonExisting\.$#'
50-
path: 'tests/Doctrine/Tests/Common/Proxy/ProxyMagicMethodsTest.php'
50+
path: 'tests/Common/Proxy/ProxyMagicMethodsTest.php'
5151

5252
-
5353
message: "#^Class Doctrine\\\\Tests\\\\Common\\\\Proxy\\\\MagicIssetClassWithInteger not found\\.$#"
5454
count: 1
55-
path: tests/Doctrine/Tests/Common/Proxy/ProxyMagicMethodsTest.php
55+
path: tests/Common/Proxy/ProxyMagicMethodsTest.php
5656
includes:
5757
- vendor/phpstan/phpstan-phpunit/extension.neon
5858
- vendor/phpstan/phpstan-phpunit/rules.neon

phpunit.xml.dist

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
>
88
<testsuites>
99
<testsuite name="Doctrine Common Test Suite">
10-
<directory>./tests/Doctrine/</directory>
10+
<directory>./tests</directory>
1111
</testsuite>
1212
</testsuites>
1313

1414
<filter>
1515
<whitelist>
16-
<directory>./lib/Doctrine/</directory>
16+
<directory>./src</directory>
1717
</whitelist>
1818
</filter>
1919
</phpunit>

psalm.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
phpVersion="8.1"
99
>
1010
<projectFiles>
11-
<directory name="lib/Doctrine/Common" />
11+
<directory name="src" />
1212
<ignoreFiles>
13-
<file name="lib/Doctrine/Common/Proxy/ProxyGenerator.php" />
13+
<file name="src/Proxy/ProxyGenerator.php" />
1414
</ignoreFiles>
1515
</projectFiles>
1616
</psalm>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Doctrine/Tests/Proxies/
2-
Doctrine/Tests/ORM/Proxy/generated/
3-
Doctrine/Tests/ORM/Tools/Export/export
1+
Proxies/
2+
ORM/Proxy/generated/
3+
ORM/Tools/Export/export

0 commit comments

Comments
 (0)