protected function setUp() { TestsHelpers::cleanAllLogs(); $this->localFeedDir = __DIR__ . "/Data/localFeeds/orders"; $this->ftp = TestsHelpers::getFtpConnection(); $this->xmlImporter = m::mock('E7\\ConnectorsSets\\XmlImporter')->shouldReceive(array("import" => true))->mock(); $this->logFile = TestsHelpers::getUserLog(); $this->logger = LoggerFactory::getFileLogger($this->logFile, Logger::INFO); $this->testFiles = array("orders_20130101_123000.xml", "orders_20140101_123000.xml", "orders_20150101_123000.xml"); }
protected function setUp() { TestsHelpers::cleanAllLogs(); $this->localFeedPath = E7_PATH . "/tests/E7/ConnectorsSets/Data/localFeeds/products/file1.xml"; $this->localFeedDir = dirname($this->localFeedPath); $this->remoteFeedDir = E7_PATH . "/tests/E7/ConnectorsSets/Data/remoteFeeds/products"; $this->xmlExporter = m::mock('E7\\ConnectorsSets\\XmlExporter')->shouldReceive(array("generateXml" => true))->mock(); $this->ftp = TestsHelpers::getFtpConnection(); $this->logFile = TestsHelpers::getUserLog(); $this->logger = LoggerFactory::getFileLogger($this->logFile, Logger::INFO); $this->testFiles = array("products_20130101_123000.xml", "products_20140101_123000.xml", "products_20150101_123000.xml"); }
public function testCoverConstructFtpImplementation() { $ftp = TestsHelpers::getFtpConnection(); $ftpLister = new FtpDirectoryLister($ftp); }