1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Refactoring tests

This commit is contained in:
Gabriel Caruso 2017-12-03 02:41:58 -02:00
parent 6bb3ab1868
commit 885da4c8ef
6 changed files with 23 additions and 23 deletions

View file

@ -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);
}
}
}