1
0
Fork 0
pull/4621/head
Thiago Carvalho 2015-11-21 08:58:52 +01:00
parent f2b0e2284a
commit 320533bcf9
2 changed files with 10 additions and 0 deletions

View File

@ -442,6 +442,10 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"abandoned": {
"type": ["boolean"],
"description": "Indicates whether this package has been abandoned. Defaults to false."
} }
} }
} }

View File

@ -38,6 +38,12 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
), $this->check($json)); ), $this->check($json));
} }
public function testOptionalAbandonedProperty()
{
$json = '{"name": "name", "description": "description", "abandoned": true}';
$this->assertTrue($this->check($json));
}
public function testMinimumStabilityValues() public function testMinimumStabilityValues()
{ {
$json = '{ "name": "vendor/package", "description": "generic description", "minimum-stability": "" }'; $json = '{ "name": "vendor/package", "description": "generic description", "minimum-stability": "" }';