1
0
Fork 0
pull/3774/head
Jordi Boggiano 2015-02-24 14:22:54 +00:00
parent 3cff4a3bb9
commit 0b4a9235f4
12 changed files with 15 additions and 15 deletions

View File

@ -383,7 +383,7 @@ EOF;
}
if (!$filesCode) {
return FALSE;
return false;
}
return <<<EOF

View File

@ -33,7 +33,6 @@ use Composer\Json\JsonFile;
use Composer\Package\AliasPackage;
use Composer\Package\CompletePackage;
use Composer\Package\Link;
use Composer\Package\LinkConstraint\EmptyConstraint;
use Composer\Package\LinkConstraint\VersionConstraint;
use Composer\Package\Locker;
use Composer\Package\PackageInterface;
@ -1179,7 +1178,6 @@ class Installer
return $this;
}
/**
* set whether to run autoloader or not
*
@ -1193,7 +1191,6 @@ class Installer
return $this;
}
/**
* set whether to run scripts or not
*

View File

@ -106,6 +106,7 @@ class AutoloadGeneratorTest extends TestCase
$ret = $ret();
}
}
return $ret;
}));

View File

@ -59,6 +59,7 @@ class ConsoleIOTest extends TestCase
$this->callback(function ($messages) {
$result = preg_match("[(.*)/(.*) First line]", $messages[0]) > 0;
$result &= preg_match("[(.*)/(.*) Second line]", $messages[1]) > 0;
return $result;
}),
$this->equalTo(false)

View File

@ -330,8 +330,7 @@ class InstallerTest extends TestCase
);
$section = null;
foreach ($tokens as $i => $token)
{
foreach ($tokens as $i => $token) {
if (null === $section && empty($token)) {
continue; // skip leading blank
}

View File

@ -14,7 +14,6 @@ namespace Composer\Test\Mock;
use Composer\Composer;
use Composer\Config;
use Composer\Factory;
use Composer\Repository;
use Composer\Repository\RepositoryManager;
use Composer\Repository\WritableRepositoryInterface;
use Composer\Installer;

View File

@ -172,6 +172,7 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
$processExecutor = new ProcessExecutorMock(function ($command, &$output = null, $cwd = null) use ($self) {
if (0 === strpos($command, 'git rev-list')) {
$output = "";
return 0;
}
@ -210,6 +211,7 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
$processExecutor = new ProcessExecutorMock(function ($command, &$output = null, $cwd = null) use ($self) {
if (0 === strpos($command, 'git rev-list')) {
$output = "";
return 0;
}

View File

@ -166,6 +166,7 @@ class GitHubTest extends \PHPUnit_Framework_TestCase
return true;
}
}
return false;
})
)