LEtudiant\Composer\Installer\SharedPackageInstaller::supports PHP 메소드

supports() 공개 메소드

public supports ( string $packageType ) : boolean
$packageType string
리턴 boolean
    public function supports($packageType)
    {
        return true;
    }

Usage Example

 /**
  * @test
  */
 public function supports()
 {
     $library = new SharedPackageInstaller($this->io, $this->composer, $this->fs, $this->dataManager);
     $this->assertFalse($library->supports('foo'));
     $this->assertFalse($library->supports('library'));
     $this->assertTrue($library->supports(SharedPackageInstaller::PACKAGE_TYPE));
 }