Beispiel #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->factory = $this->getMock('\\Composer\\Factory');
     $this->loader = $this->getMock('\\Composer\\Package\\Loader\\LoaderInterface');
     $this->lock_file = $this->root_dir . 'composer.lock';
     $this->composer = new Composer($this->factory, $this->loader, $this->lock_file);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->input = $this->getMock('\\Symfony\\Component\\Console\\Input\\InputInterface');
     $this->output = $this->getMock('\\Symfony\\Component\\Console\\Output\\OutputInterface');
     $this->container = $this->getMock('\\Symfony\\Component\\DependencyInjection\\ContainerInterface');
     $this->package = $this->getMock('\\Composer\\Package\\RootPackageInterface');
     $this->filesystem = $this->getMock('\\Symfony\\Component\\Filesystem\\Filesystem');
     $this->composer = $this->getMockBuilder('\\AnimeDb\\Bundle\\AnimeDbBundle\\Composer\\Composer')->disableOriginalConstructor()->getMock();
     $this->github = $this->getMockBuilder('\\AnimeDb\\Bundle\\AnimeDbBundle\\Client\\GitHub')->disableOriginalConstructor()->getMock();
     $this->target = sys_get_temp_dir() . '/anime-db';
 }
Beispiel #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->container = $this->getMockBuilder('\\AnimeDb\\Bundle\\AnimeDbBundle\\Composer\\Job\\Container')->disableOriginalConstructor()->getMock();
 }
 protected function tearDown()
 {
     parent::tearDown();
     ScriptHandler::setContainer($this->default_container);
     ScriptHandler::setRootDir($this->default_root_dir);
 }