Skip to content

Commit 49aa286

Browse files
committed
Remove dead code
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent 90fb19f commit 49aa286

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Tests/ValidatorBuilderTest.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Validator\Tests;
1313

14-
use Doctrine\Common\Annotations\CachedReader;
1514
use Doctrine\Common\Annotations\PsrCachedReader;
1615
use Doctrine\Common\Annotations\Reader;
1716
use PHPUnit\Framework\TestCase;
@@ -100,11 +99,7 @@ public function testEnableAnnotationMapping()
10099
$r = new \ReflectionProperty(AnnotationLoader::class, 'reader');
101100
$r->setAccessible(true);
102101

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]));
108103
}
109104

110105
public function testEnableAnnotationMappingWithDefaultDoctrineAnnotationReader()
@@ -119,11 +114,7 @@ public function testEnableAnnotationMappingWithDefaultDoctrineAnnotationReader()
119114
$r = new \ReflectionProperty(AnnotationLoader::class, 'reader');
120115
$r->setAccessible(true);
121116

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]));
127118
}
128119

129120
/**

0 commit comments

Comments
 (0)