Пример #1
0
 /**
  * @depends testInstallerCreationShouldNotCreateVendorDirectory
  * @depends testInstallerCreationShouldNotCreateBinDirectory
  */
 public function testEnsureBinariesInstalled()
 {
     $binaryInstallerMock = $this->getMockBuilder('Composer\\Installer\\BinaryInstaller')->disableOriginalConstructor()->getMock();
     $library = new LibraryInstaller($this->io, $this->composer, 'library', null, $binaryInstallerMock);
     $package = $this->createPackageMock();
     $binaryInstallerMock->expects($this->never())->method('removeBinaries')->with($package);
     $binaryInstallerMock->expects($this->once())->method('installBinaries')->with($package, $library->getInstallPath($package), false);
     $library->ensureBinariesPresence($package);
 }