/**
  *
  */
 public function testBuildMappingException()
 {
     $this->setExpectedException('Bcn\\MageBuild\\Exception\\MappingException');
     $filesystem = $this->getFilesystem();
     $filesystem->expects($this->once())->method('exists')->with($this->equalTo(self::SOURCE))->will($this->returnValue(true));
     $package = $this->getPackage('bcn/test1', '1.0.0', 'magento-module', self::SOURCE);
     $builder = new PackageBuilder();
     $builder->setFilesystem($filesystem);
     $builder->build($package, self::TARGET, $this->getStrategy());
 }
Esempio n. 2
0
 /**
  * @param  Project           $project
  * @param  Package           $package
  * @param  StrategyInterface $strategy
  * @return bool
  */
 protected function buildPackage(Project $project, Package $package, StrategyInterface $strategy)
 {
     $this->builder->build($package, $project->getTargetDir(), $strategy);
 }