public function testManifestVersionMustNotBeTheSameAsTheLiveVersion(): void
{ $deprecatedContent = '@deprecated manifest:v0.1';
static::
expectException(\InvalidArgumentException::
class);
static::
expectExceptionMessage('The version you used for deprecation or experimental annotation is already live.'
);
$this->annotationTagTester->
validateDeprecatedAnnotations($deprecatedContent);
} public function testItCapturesTheVersionFromDeprecationElementsCorrectly(): void
{ $this->annotationTagTester->
validateDeprecationElements('<deprecated>tag:v6.5.0</deprecated>'
);
static::
expectException(\InvalidArgumentException::
class);
static::
expectExceptionMessage('The version you used for deprecation or experimental annotation is already live.'
);
$this->annotationTagTester->
validateDeprecationElements('<deprecated>tag:v6.3.0</deprecated>'
);
} public function testIncorrectDeprecationTagFormat(): void
{ static::
expectException(NoDeprecationFoundException::
class);
static::
expectExceptionMessage('Deprecation tag is not found in the file.'
);
$this->annotationTagTester->
validateDeprecationElements('<deprecatedd>tag:v6.5</deprecatedd>'
);
}