Skip to content

Commit 7e0f24f

Browse files
committed
Update CompareTest.php
1 parent 42e1710 commit 7e0f24f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/CompareTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public function testEqualOnlyVersions()
7474

7575
public function testEqualIgnoreBuild()
7676
{
77-
$version = Version::parse('5.2.3-alpha.2+build.34');
78-
$this->assertTrue($version->isEqual('5.2.3-alpha.2'));
79-
$this->assertFalse($version->isEqual('5.2.3-alpha.5'));
77+
$this->assertTrue(Version::equal('5.2.3-alpha.2+build.34', '5.2.3-alpha.2'));
78+
$this->assertFalse(Version::equal('5.2.3-alpha.2+build.34', '5.2.3-alpha.5'));
8079
}
8180
}

0 commit comments

Comments
 (0)