Skip to content

Commit ad54b7d

Browse files
committed
Implement the new getRootPackageName and getRootPackageVersion methods
1 parent d2962c4 commit ad54b7d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Functional/PrettyVersionsTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,17 @@ public function testVersionLetsExceptionRaise()
2424

2525
PrettyVersions::getVersion('non-existent-vendor/non-existent-package');
2626
}
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+
}
2740
}

0 commit comments

Comments
 (0)