1
0
Fork 0
pull/1008/merge
Jordi Boggiano 2012-08-18 16:22:15 +02:00
parent ef637c8f1a
commit 521bbe6556
5 changed files with 11 additions and 14 deletions

View File

@ -343,7 +343,7 @@ AUTOLOAD;
// - https://bugs.php.net/bug.php?id=59298 // - https://bugs.php.net/bug.php?id=59298
if ($filesCode) { if ($filesCode) {
$filesCode = "\n".$filesCode; $filesCode = "\n\n".rtrim($filesCode);
} }
$file = <<<HEADER $file = <<<HEADER
@ -406,8 +406,7 @@ REGISTER_AUTOLOAD;
} }
$file .= <<<METHOD_FOOTER $file .= <<<METHOD_FOOTER
\$loader->register(); \$loader->register();{$filesCode}
$filesCode
return \$loader; return \$loader;
} }

View File

@ -1,7 +1,7 @@
<?php <?php
namespace { namespace {
trait TFoo { trait TFoo
{
} }
class CFoo class CFoo
@ -11,16 +11,16 @@ namespace {
} }
namespace Foo { namespace Foo {
trait TBar { trait TBar
{
} }
interface IBar { interface IBar
{
} }
trait TFooBar { trait TFooBar
{
} }
class CBar implements IBar class CBar implements IBar

View File

@ -13,7 +13,6 @@
namespace Composer\Test\Json; namespace Composer\Test\Json;
use Seld\JsonLint\ParsingException; use Seld\JsonLint\ParsingException;
use Composer\Json\JsonValidationException;
use Composer\Json\JsonFile; use Composer\Json\JsonFile;
class JsonFileTest extends \PHPUnit_Framework_TestCase class JsonFileTest extends \PHPUnit_Framework_TestCase

View File

@ -17,7 +17,6 @@ use Composer\Factory;
use Composer\Repository; use Composer\Repository;
use Composer\Repository\RepositoryManager; use Composer\Repository\RepositoryManager;
use Composer\Installer; use Composer\Installer;
use Composer\Downloader;
use Composer\IO\IOInterface; use Composer\IO\IOInterface;
class FactoryMock extends Factory class FactoryMock extends Factory