Flatten directory structure (#49)

This commit is contained in:
Alexander M. Turek
2022-10-10 14:22:48 +02:00
committed by GitHub
parent 1deb65c8ba
commit 77e1421cc7
10 changed files with 12 additions and 24 deletions

View File

@@ -39,12 +39,12 @@
},
"autoload": {
"psr-4": {
"Doctrine\\Common\\": "lib/Doctrine/Common"
"Doctrine\\Common\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Doctrine\\Tests\\": "tests/Doctrine/Tests"
"Doctrine\\Tests\\Common\\": "tests"
}
}
}

View File

@@ -10,7 +10,7 @@
<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>
<file>lib</file>
<file>src</file>
<file>tests</file>
<rule ref="Doctrine">
@@ -35,14 +35,14 @@
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.WrongStyle">
<exclude-pattern>*/tests/Doctrine/Tests/Common/EventManagerTest.php</exclude-pattern>
<exclude-pattern>tests/EventManagerTest.php</exclude-pattern>
</rule>
</ruleset>

View File

@@ -1,5 +1,5 @@
parameters:
level: 9
paths:
- lib/
- src/
- tests/

View File

@@ -8,13 +8,13 @@
>
<testsuites>
<testsuite name="Doctrine Event Manager Test Suite">
<directory>./tests/Doctrine/</directory>
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./lib/Doctrine/</directory>
<directory>src</directory>
</whitelist>
</filter>
</phpunit>

View File

@@ -7,7 +7,7 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="lib/Doctrine/Common" />
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>

View File

@@ -1,12 +0,0 @@
<?php
namespace Doctrine\Tests;
use PHPUnit\Framework\TestCase;
/**
* Base testcase class for all Doctrine testcases.
*/
abstract class DoctrineTestCase extends TestCase
{
}

View File

@@ -5,12 +5,12 @@ namespace Doctrine\Tests\Common;
use Doctrine\Common\EventArgs;
use Doctrine\Common\EventManager;
use Doctrine\Common\EventSubscriber;
use Doctrine\Tests\DoctrineTestCase;
use PHPUnit\Framework\TestCase;
use ReflectionProperty;
use function count;
class EventManagerTest extends DoctrineTestCase
class EventManagerTest extends TestCase
{
/* Some pseudo events */
private const PRE_FOO = 'preFoo';