We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2962c4 commit ad54b7dCopy full SHA for ad54b7d
tests/Functional/PrettyVersionsTest.php
@@ -24,4 +24,17 @@ public function testVersionLetsExceptionRaise()
24
25
PrettyVersions::getVersion('non-existent-vendor/non-existent-package');
26
}
27
+
28
+ public function testGetRootPackageName()
29
+ {
30
+ $this->assertSame('jean85/pretty-package-versions', PrettyVersions::getRootPackageName());
31
+ }
32
33
+ public function testGetRootPackageVersion()
34
35
+ $version = PrettyVersions::getRootPackageVersion();
36
37
+ $this->assertSame('jean85/pretty-package-versions', $version->getPackageName());
38
+ $this->assertEquals(PrettyVersions::getVersion('jean85/pretty-package-versions'), $version);
39
40
0 commit comments