We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df71d16 commit c863cceCopy full SHA for c863cce
1 file changed
tests/testsuites/ParseTest.php
@@ -219,6 +219,7 @@ public function test_no_tag(): void
219
$this->assertFalse($version->isBeta());
220
$this->assertFalse($version->isReleaseCandidate());
221
$this->assertFalse($version->hasTag());
222
+ $this->assertFalse($version->isSnapshot());
223
}
224
225
public function test_tag_beta(): void
@@ -248,6 +249,13 @@ public function test_tag_releaseCandidate(): void
248
249
$this->assertTrue($version->isReleaseCandidate());
250
251
252
+ public function test_tag_snapshot(): void
253
+ {
254
+ $version = VersionParser::create('1.0-snapshot');
255
+
256
+ $this->assertTrue($version->isSnapshot());
257
+ }
258
259
public function test_tag_hyphen(): void
260
{
261
$version = VersionParser::create('1.0-rc-2');
0 commit comments