Login   Register  
PHP Classes
elePHPant
Icontem

File: tests/FtpSyncTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Amin Saeidi  >  FTP Sync  >  tests/FtpSyncTest.php  >  Download  
File: tests/FtpSyncTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: FTP Sync
Synchronize two hosts via FTP
Author: By
Last change: Some docs added
Date: 2011-11-28 10:40
Size: 648 bytes
 

Contents

Class file image Download
<?php
require_once dirname(__DIR__).'/lib/FtpSync.php';

class 
FtpSyncTest extends PHPUnit_Framework_TestCase
{
    protected 
$_ftp;

    public function 
setUp()
    {
        
$this->_ftp = new FtpSync('127.0.0.1''Amin''123');
    }

    public function 
testLocalFiles()
    {
        
$this->markTestSkipped();
        
$result $this->_ftp->ignore('.wma')
                       ->
getLocalFilesRecursive('Music/Classical');
        
var_dump($result);
    }

    public function 
testRemoteFiles()
    {
        
$this->markTestSkipped();
        
$result $this->_ftp
                       
->getRemoteFilesRecursive('Music/Classical');
    }
}