1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Assets; |
4
|
|
|
|
5
|
|
|
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command\AbstractCommand; |
6
|
|
|
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generator\AbstractGenerator; |
7
|
|
|
use EdmondsCommerce\DoctrineStaticMeta\Entity\Savers\EntitySaver; |
8
|
|
|
use EdmondsCommerce\DoctrineStaticMeta\Entity\Savers\EntitySaverInterface; |
9
|
|
|
use EdmondsCommerce\DoctrineStaticMeta\Schema\Database; |
10
|
|
|
use EdmondsCommerce\DoctrineStaticMeta\Schema\Schema; |
11
|
|
|
use EdmondsCommerce\DoctrineStaticMeta\Tests\Large\Exception; |
|
|
|
|
12
|
|
|
|
13
|
|
|
abstract class AbstractLargeTest extends AbstractTest |
14
|
|
|
{ |
15
|
|
|
public const TEST_TYPE_MEDIUM = 'Large'; |
16
|
|
|
|
17
|
|
|
public const TEST_PROJECT_ROOT_NAMESPACE = 'My\\LargeTest\\Project'; |
18
|
|
|
|
19
|
|
|
protected function setupCopiedWorkDirAndCreateDatabase(): void |
20
|
|
|
{ |
21
|
|
|
$this->setupCopiedWorkDir(); |
22
|
|
|
$database = $this->container->get(Database::class); |
23
|
|
|
$database->drop(true); |
24
|
|
|
$database->create(true); |
25
|
|
|
$schema = $this->container->get(Schema::class); |
26
|
|
|
$schema->create(); |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @return string |
31
|
|
|
* @throws Exception\ConfigException |
32
|
|
|
* @throws Exception\DoctrineStaticMetaException |
33
|
|
|
* @throws \ReflectionException |
34
|
|
|
*/ |
35
|
|
|
protected function setupCopiedWorkDir(): string |
36
|
|
|
{ |
37
|
|
|
$copiedWorkDir = parent::setupCopiedWorkDir(); |
38
|
|
|
$this->setupContainer( |
39
|
|
|
$copiedWorkDir |
40
|
|
|
. '/' . AbstractCommand::DEFAULT_SRC_SUBFOLDER |
41
|
|
|
. '/' . AbstractGenerator::ENTITIES_FOLDER_NAME |
42
|
|
|
); |
43
|
|
|
|
44
|
|
|
return $copiedWorkDir; |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @return EntitySaverInterface |
49
|
|
|
* @throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException |
50
|
|
|
*/ |
51
|
|
|
protected function getEntitySaver(): EntitySaverInterface |
52
|
|
|
{ |
53
|
|
|
return $this->container->get(EntitySaver::class); |
54
|
|
|
} |
55
|
|
|
} |
56
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths