AnnotationTagTester example

/** * @internal */
#[Package('core')] class AnnotationTagTesterTest extends TestCase
{
    private AnnotationTagTester $annotationTagTester;

    protected function setUp(): void
    {
        $this->annotationTagTester = new AnnotationTagTester('6.4.0.0', '1.0');
    }

    public function testGetVersionFromGitTagReturnsCorrectVersion(): void
    {
        $version = AnnotationTagTester::getPlatformVersionFromGitTag('v6.4.0.0');

        static::assertEquals('6.4.0.0', $version);
    }

    public function testGetVersionFromGitTagReturnsCorrectVersionFromOldVersioning(): void
    {
        
if ($path === false) {
            throw new \LogicException("could not locate filepath for class {$className}");
        }

        return $path;
    }

    private function getDeprecationTagTester(): AnnotationTagTester
    {
        if ($this->deprecationTagTester === null) {
            $this->deprecationTagTester = new AnnotationTagTester(
                $this->getShopwareVersion(),
                $this->getManifestVersion()
            );
        }

        return $this->deprecationTagTester;
    }

    /** * can be overwritten with env variable VERSION */
    
Home | Imprint | This part of the site doesn't use cookies.