new InputOption('foo7', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, '',
[1, 2
]),
]);
$defaults =
[ 'foo1' => false,
'foo2' => null,
'foo3' => 'default',
'foo4' => null,
'foo5' => 'default',
'foo6' =>
[],
'foo7' =>
[1, 2
],
];
$this->
assertSame($defaults,
$definition->
getOptionDefaults(), '->getOptionDefaults() returns the default values for all options'
);
} /**
* @dataProvider getGetSynopsisData
*/
public function testGetSynopsis(InputDefinition
$definition,
$expectedSynopsis,
$message = null
) { $this->
assertEquals($expectedSynopsis,
$definition->
getSynopsis(),
$message ? '->getSynopsis() '.
$message : ''
);
} public static function getGetSynopsisData() {