FancyGuy\Composer\WebrootInstaller::supports PHP Method

supports() public method

{@inheritDoc}
public supports ( $packageType )
    public function supports($packageType)
    {
        return $packageType === self::INSTALLER_TYPE;
    }

Usage Example

 /**
  * testSupports
  * 
  * @return void
  * 
  * @dataProvider dataForTestSupport
  */
 public function testSupports($type, $expected)
 {
     $installer = new WebrootInstaller($this->io, $this->composer);
     $this->assertSame($expected, $installer->supports($type), sprintf('Failed to show support for %s', $type));
 }