soak() public method

Soaks the passed archive into from a location in the filesystem to the deploy directory.
public soak ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, SplFileInfo $archive ) : void
$containerNode AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface The container the archive is bound to
$archive SplFileInfo The archive to soak
return void
Example #1
0
 /**
  * Tests if we can soak an archive without receiving an exception
  *
  * @return null
  */
 public function testSoak()
 {
     $mockExtractor = $this->getMock('\\AppserverIo\\Appserver\\Core\\Interfaces\\ExtractorInterface');
     $mockExtractor->expects($this->once())->method('soakArchive');
     $this->appService->injectExtractor($mockExtractor);
     $this->appService->soak($this->getMockBuilder('\\SplFileInfo')->setConstructorArgs(array(__FILE__))->getMock());
 }