CodeExplorer getPlatformVersionFromGitTag example
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
{ $version = AnnotationTagTester::
getPlatformVersionFromGitTag('v6.1.0'
);
static::
assertEquals('6.1.0',
$version);
}