Add types to tests/composer/test/json (#10222)
Co-authored-by: Jakob Vibe <jv@ipw.dk>pull/10231/head
parent
df6c2ce1db
commit
f667c7b8de
|
@ -90,6 +90,11 @@ class ComposerSchemaTest extends TestCase
|
|||
$this->assertTrue($this->check($json), 'stable');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $json
|
||||
* @return mixed
|
||||
*/
|
||||
private function check($json)
|
||||
{
|
||||
$validator = new Validator();
|
||||
|
|
|
@ -354,6 +354,11 @@ class JsonFileTest extends TestCase
|
|||
$this->assertEquals($data, $doubleData);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $text
|
||||
* @param string $json
|
||||
* @return void
|
||||
*/
|
||||
private function expectParseException($text, $json)
|
||||
{
|
||||
try {
|
||||
|
@ -364,6 +369,13 @@ class JsonFileTest extends TestCase
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $json
|
||||
* @param mixed $data
|
||||
* @param integer|null $options
|
||||
* @return void
|
||||
*/
|
||||
private function assertJsonFormat($json, $data, $options = null)
|
||||
{
|
||||
$file = new JsonFile('composer.json');
|
||||
|
|
Loading…
Reference in New Issue