mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
replace all occurences in code and comments
This commit is contained in:
parent
1ccfc8eb96
commit
a1427d7fd6
38 changed files with 124 additions and 122 deletions
|
@ -13,8 +13,8 @@
|
|||
namespace Composer\Repository\Pear;
|
||||
|
||||
use Composer\TestCase;
|
||||
use Composer\Package\Version\VersionParser;
|
||||
use Composer\Package\LinkConstraint\VersionConstraint;
|
||||
use Composer\Semver\VersionParser;
|
||||
use Composer\Semver\Constraint\Constraint;
|
||||
use Composer\Package\Link;
|
||||
use Composer\Package\CompletePackage;
|
||||
use Composer\Test\Mock\RemoteFilesystemMock;
|
||||
|
@ -135,7 +135,7 @@ class ChannelReaderTest extends TestCase
|
|||
'*-ext-xml' => '*',
|
||||
));
|
||||
$expectedPackage->setReplaces(array(
|
||||
new Link('pear-test.loc/sample', 'pear-test/sample', new VersionConstraint('==', '1.0.0.1'), 'replaces', '== 1.0.0.1'),
|
||||
new Link('pear-test.loc/sample', 'pear-test/sample', new Constraint('==', '1.0.0.1'), 'replaces', '== 1.0.0.1'),
|
||||
));
|
||||
|
||||
$this->assertCount(1, $packages);
|
||||
|
@ -144,7 +144,7 @@ class ChannelReaderTest extends TestCase
|
|||
|
||||
private function createConstraint($operator, $version)
|
||||
{
|
||||
$constraint = new VersionConstraint($operator, $version);
|
||||
$constraint = new Constraint($operator, $version);
|
||||
$constraint->setPrettyString($operator.' '.$version);
|
||||
|
||||
return $constraint;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue