/**
* Test the Installer's support() function.
*
* @param $type
* The type of library.
* @param $expected
* Whether or not the given type is supported by Component Installer.
*
* @return void
*
* @dataProvider providerComponentSupports
*/
public function testComponentSupports($type, $expected)
{
$installer = new Installer($this->io, $this->composer, 'component');
$this->assertSame($expected, $installer->supports($type), sprintf('Failed to show support for %s', $type));
}