File: AnnotationRegistryTest.php

package info (click to toggle)
php-doctrine-annotations 2.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,552 kB
  • sloc: php: 8,471; xml: 26; makefile: 23
file content (20 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace Doctrine\Tests\Common\Annotations;

use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\CanBeAutoLoaded;
use PHPUnit\Framework\TestCase;

class AnnotationRegistryTest extends TestCase
{
    /**
     * @runInSeparateProcess
     */
    public function testClassExistsFallback(): void
    {
        AnnotationRegistry::reset();

        self::assertTrue(AnnotationRegistry::loadAnnotationClass(CanBeAutoLoaded::class));
    }
}