public function soak(ContainerNodeInterface $containerNode, \SplFileInfo $archive) { $extractor = $this->getExtractor(); $extractor->soakArchive($containerNode, $archive); }
/** * 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()); }