Micro-PHP /
plugin-doctrine
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | /* |
||
| 6 | * This file is part of the Micro framework package. |
||
| 7 | * |
||
| 8 | * (c) Stanislau Komar <[email protected]> |
||
| 9 | * |
||
| 10 | * For the full copyright and license information, please view the LICENSE |
||
| 11 | * file that was distributed with this source code. |
||
| 12 | */ |
||
| 13 | |||
| 14 | namespace Micro\Plugin\Doctrine\Test\Unit\Console; |
||
| 15 | |||
| 16 | use Micro\Plugin\Doctrine\Console\CollectionRegionCommand; |
||
| 17 | use Micro\Plugin\Doctrine\Console\CreateCommand; |
||
| 18 | use Micro\Plugin\Doctrine\Console\DropCommand; |
||
| 19 | use Micro\Plugin\Doctrine\Console\EntityRegionCommand; |
||
| 20 | use Micro\Plugin\Doctrine\Console\GenerateProxiesCommand; |
||
| 21 | use Micro\Plugin\Doctrine\Console\InfoCommand; |
||
| 22 | use Micro\Plugin\Doctrine\Console\MappingDescribeCommand; |
||
| 23 | use Micro\Plugin\Doctrine\Console\MetadataCommand; |
||
| 24 | use Micro\Plugin\Doctrine\Console\QueryCommand; |
||
| 25 | use Micro\Plugin\Doctrine\Console\ResultCommand; |
||
| 26 | use Micro\Plugin\Doctrine\Console\RunDqlCommand; |
||
| 27 | use Micro\Plugin\Doctrine\Console\UpdateCommand; |
||
| 28 | use Micro\Plugin\Doctrine\Console\ValidateSchemaCommand; |
||
| 29 | use Micro\Plugin\Doctrine\DoctrineFacadeInterface; |
||
| 30 | use PHPUnit\Framework\TestCase; |
||
| 31 | use Symfony\Component\Console\Command\Command; |
||
|
0 ignored issues
–
show
|
|||
| 32 | |||
| 33 | class CommandTest extends TestCase |
||
| 34 | { |
||
| 35 | /** |
||
| 36 | * @dataProvider dataProvider |
||
| 37 | */ |
||
| 38 | public function testCmd(string $cmd) |
||
| 39 | { |
||
| 40 | $facade = $this->createMock(DoctrineFacadeInterface::class); |
||
| 41 | |||
| 42 | $obj = new $cmd($facade); |
||
| 43 | $this->assertInstanceOf(Command::class, $obj); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function dataProvider() |
||
| 47 | { |
||
| 48 | return [ |
||
| 49 | [CollectionRegionCommand::class], |
||
| 50 | [CreateCommand::class], |
||
| 51 | [DropCommand::class], |
||
| 52 | [EntityRegionCommand::class], |
||
| 53 | [GenerateProxiesCommand::class], |
||
| 54 | [InfoCommand::class], |
||
| 55 | [MappingDescribeCommand::class], |
||
| 56 | [MetadataCommand::class], |
||
| 57 | [QueryCommand::class], |
||
| 58 | [ResultCommand::class], |
||
| 59 | [RunDqlCommand::class], |
||
| 60 | [UpdateCommand::class], |
||
| 61 | [ValidateSchemaCommand::class], |
||
| 62 | ]; |
||
| 63 | } |
||
| 64 | } |
||
| 65 |
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