Skip to content

Commit 4f96d2f

Browse files
chore: increase test coverage
1 parent 8d18b35 commit 4f96d2f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)