Skip to content

Commit c863cce

Browse files
committed
Update ParseTest.php
1 parent df71d16 commit c863cce

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/testsuites/ParseTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public function test_no_tag(): void
219219
$this->assertFalse($version->isBeta());
220220
$this->assertFalse($version->isReleaseCandidate());
221221
$this->assertFalse($version->hasTag());
222+
$this->assertFalse($version->isSnapshot());
222223
}
223224

224225
public function test_tag_beta(): void
@@ -248,6 +249,13 @@ public function test_tag_releaseCandidate(): void
248249
$this->assertTrue($version->isReleaseCandidate());
249250
}
250251

252+
public function test_tag_snapshot(): void
253+
{
254+
$version = VersionParser::create('1.0-snapshot');
255+
256+
$this->assertTrue($version->isSnapshot());
257+
}
258+
251259
public function test_tag_hyphen(): void
252260
{
253261
$version = VersionParser::create('1.0-rc-2');

0 commit comments

Comments
 (0)