We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d18b35 commit 4f96d2fCopy full SHA for 4f96d2f
tests/Unit/MartinGeorgiev/Utils/DoctrineOrmTest.php
@@ -0,0 +1,22 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Tests\Unit\MartinGeorgiev\Utils;
6
7
+use Doctrine\ORM\Query\TokenType;
8
+use MartinGeorgiev\Utils\DoctrineOrm;
9
+use PHPUnit\Framework\Attributes\Test;
10
+use PHPUnit\Framework\TestCase;
11
12
+class DoctrineOrmTest extends TestCase
13
+{
14
+ #[Test]
15
+ public function is_consistent_with_token_type_existence(): void
16
+ {
17
+ $tokenTypeExists = \class_exists(TokenType::class);
18
+ $isPre219 = DoctrineOrm::isPre219();
19
20
+ self::assertSame(!$tokenTypeExists, $isPre219);
21
+ }
22
+}
0 commit comments