Passed
Pull Request — master (#405)
by Kirill
08:21 queued 04:03
created

DoctrineReaderTestCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getReader() 0 3 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\ReaderInterface;
16
17
/**
18
 * Doctrine reader does not support:
19
 *  - function annotations
20
 *  - function parameter annotations
21
 *  - constant annotations
22
 *  - method parameter annotations
23
 *
24
 * @group unit
25
 * @group reader
26
 */
27
class DoctrineReaderTestCase extends ReaderTestCase
28
{
29
    protected $functionMetadataCount = 0;
30
    protected $functionParameterMetadataCount = 0;
31
    protected $constantMetadataCount = 0;
32
    protected $methodParameterMetadataCount = 0;
33
34
    protected function getReader(): ReaderInterface
35
    {
36
        return new AnnotationReader();
37
    }
38
}
39