Completed
Push — master ( 6366df...fbe022 )
by Kirill
23s queued 19s
created

MergeReaderTestCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getReader() 0 5 1
1
<?php
2
3
/**
4
 * This file is part of Spiral Framework package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Attributes\Reader;
13
14
use Spiral\Attributes\AnnotationReader;
15
use Spiral\Attributes\AttributeReader;
16
use Spiral\Attributes\Composite\MergeReader;
17
use Spiral\Attributes\ReaderInterface;
18
19
/**
20
 * Count of annotations should be x2 of original values, except non-supported
21
 * by Doctrine reader ({@see DoctrineReaderTestCase} for more information).
22
 *
23
 * @group unit
24
 * @group reader
25
 */
26
class MergeReaderTestCase extends CompositeReaderTestCase
27
{
28
    protected $classMetadataCount = 2;
29
    protected $methodMetadataCount = 2;
30
    protected $propertyMetadataCount = 2;
31
32
    protected function getReader(): ReaderInterface
33
    {
34
        return new MergeReader([
35
            new AttributeReader(),
36
            new AnnotationReader(),
37
        ]);
38
    }
39
}
40