mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add ValidatingArrayLoader and more validation for the validate command
This commit is contained in:
parent
c065b5251d
commit
c65af3e3a1
8 changed files with 567 additions and 9 deletions
|
@ -16,6 +16,7 @@ use Composer\Composer;
|
|||
use Composer\Config;
|
||||
use Composer\Installer\InstallerInstaller;
|
||||
use Composer\Package\Loader\JsonLoader;
|
||||
use Composer\Package\Loader\ArrayLoader;
|
||||
use Composer\Package\PackageInterface;
|
||||
|
||||
class InstallerInstallerTest extends \PHPUnit_Framework_TestCase
|
||||
|
@ -28,7 +29,7 @@ class InstallerInstallerTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
protected function setUp()
|
||||
{
|
||||
$loader = new JsonLoader();
|
||||
$loader = new JsonLoader(new ArrayLoader());
|
||||
$this->packages = array();
|
||||
for ($i = 1; $i <= 4; $i++) {
|
||||
$this->packages[] = $loader->load(__DIR__.'/Fixtures/installer-v'.$i.'/composer.json');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue