File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Validator \Tests ;
13
13
14
- use Doctrine \Common \Annotations \CachedReader ;
15
14
use Doctrine \Common \Annotations \PsrCachedReader ;
16
15
use Doctrine \Common \Annotations \Reader ;
17
16
use PHPUnit \Framework \TestCase ;
@@ -100,11 +99,7 @@ public function testEnableAnnotationMapping()
100
99
$ r = new \ReflectionProperty (AnnotationLoader::class, 'reader ' );
101
100
$ r ->setAccessible (true );
102
101
103
- if (class_exists (PsrCachedReader::class)) {
104
- $ this ->assertInstanceOf (PsrCachedReader::class, $ r ->getValue ($ loaders [0 ]));
105
- } else {
106
- $ this ->assertInstanceOf (CachedReader::class, $ r ->getValue ($ loaders [0 ]));
107
- }
102
+ $ this ->assertInstanceOf (PsrCachedReader::class, $ r ->getValue ($ loaders [0 ]));
108
103
}
109
104
110
105
public function testEnableAnnotationMappingWithDefaultDoctrineAnnotationReader ()
@@ -119,11 +114,7 @@ public function testEnableAnnotationMappingWithDefaultDoctrineAnnotationReader()
119
114
$ r = new \ReflectionProperty (AnnotationLoader::class, 'reader ' );
120
115
$ r ->setAccessible (true );
121
116
122
- if (class_exists (PsrCachedReader::class)) {
123
- $ this ->assertInstanceOf (PsrCachedReader::class, $ r ->getValue ($ loaders [0 ]));
124
- } else {
125
- $ this ->assertInstanceOf (CachedReader::class, $ r ->getValue ($ loaders [0 ]));
126
- }
117
+ $ this ->assertInstanceOf (PsrCachedReader::class, $ r ->getValue ($ loaders [0 ]));
127
118
}
128
119
129
120
/**
You can’t perform that action at this time.
0 commit comments