12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace Composer\Test\Util;
- use Composer\IO\NullIO;
- use Composer\Util\ConfigValidator;
- use Composer\TestCase;
- class ConfigValidatorTest extends TestCase
- {
-
- public function testConfigValidatorCommitRefWarning()
- {
- $configValidator = new ConfigValidator(new NullIO());
- list(, , $warnings) = $configValidator->validate(__DIR__ . '/Fixtures/composer_commit-ref.json');
- $this->assertEquals(true, in_array(
- 'The package "some/package" is pointing to a commit-ref, this is bad practice and can cause unforeseen issues.',
- $warnings
- ));
- }
- }
|