mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Refactoring tests
This commit is contained in:
parent
6bb3ab1868
commit
885da4c8ef
6 changed files with 23 additions and 23 deletions
|
@ -61,7 +61,7 @@ class ArtifactRepositoryTest extends TestCase
|
|||
$repo = new ArtifactRepository($coordinates, new NullIO(), new Config());
|
||||
|
||||
foreach ($repo->getPackages() as $package) {
|
||||
$this->assertTrue(strpos($package->getDistUrl(), strtr($absolutePath, '\\', '/')) === 0);
|
||||
$this->assertSame(strpos($package->getDistUrl(), strtr($absolutePath, '\\', '/')), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ class ArtifactRepositoryTest extends TestCase
|
|||
$repo = new ArtifactRepository($coordinates, new NullIO(), new Config());
|
||||
|
||||
foreach ($repo->getPackages() as $package) {
|
||||
$this->assertTrue(strpos($package->getDistUrl(), $relativePath) === 0);
|
||||
$this->assertSame(strpos($package->getDistUrl(), $relativePath), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue