We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc98bdf commit eb9d71eCopy full SHA for eb9d71e
1 file changed
tests/testsuites/StringableTests.php
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Mistralys\VersionParserTests;
6
7
+use Mistralys\VersionParser\VersionParser;
8
+use Mistralys\VersionParserTests\TestClasses\VersionParserTestCase;
9
10
+final class StringableTests extends VersionParserTestCase
11
+{
12
+ public function test_toString() : void
13
+ {
14
+ $version = VersionParser::create('1.2.3-BranchName-rc5');
15
16
+ $this->assertSame('1.2.3-BranchName-rc5', (string)$version);
17
+ $this->assertSame('BranchName-rc5', (string)$version->getTagInfo());
18
+ }
19
+}
0 commit comments