Fix tests
parent
8eedfd0ecb
commit
6e0cb6cae0
|
@ -146,7 +146,7 @@ EOT
|
||||||
|
|
||||||
if (\count($errors) > 0) {
|
if (\count($errors) > 0) {
|
||||||
$io->writeError('<error>' . $name . ' is invalid, the following errors/warnings were found:</error>');
|
$io->writeError('<error>' . $name . ' is invalid, the following errors/warnings were found:</error>');
|
||||||
} elseif (\count($publishErrors) > 0) {
|
} elseif (\count($publishErrors) > 0 && $checkPublish) {
|
||||||
$io->writeError('<info>' . $name . ' is valid for simple usage with Composer but has</info>');
|
$io->writeError('<info>' . $name . ' is valid for simple usage with Composer but has</info>');
|
||||||
$io->writeError('<info>strict errors that make it unable to be published as a package</info>');
|
$io->writeError('<info>strict errors that make it unable to be published as a package</info>');
|
||||||
$doPrintSchemaUrl = $printSchemaUrl;
|
$doPrintSchemaUrl = $printSchemaUrl;
|
||||||
|
|
|
@ -142,14 +142,10 @@ OUTPUT
|
||||||
$publishDataStripped,
|
$publishDataStripped,
|
||||||
[ '--no-check-publish' => true],
|
[ '--no-check-publish' => true],
|
||||||
<<<OUTPUT
|
<<<OUTPUT
|
||||||
./composer.json is valid for simple usage with Composer but has
|
./composer.json is valid, but with a few warnings
|
||||||
strict errors that make it unable to be published as a package
|
|
||||||
<warning>See https://getcomposer.org/doc/04-schema.md for details on the schema</warning>
|
<warning>See https://getcomposer.org/doc/04-schema.md for details on the schema</warning>
|
||||||
<warning># General warnings</warning>
|
<warning># General warnings</warning>
|
||||||
- No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
|
- No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
|
||||||
<warning># Publish warnings</warning>
|
|
||||||
- name : The property name is required
|
|
||||||
- description : The property description is required
|
|
||||||
OUTPUT
|
OUTPUT
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue