for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aimeos\MW\Filesystem;
class FlySftpTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
$this->markTestSkipped( 'Install Flysystem first' );
}
public function testGetProvider()
if( !class_exists( '\League\Flysystem\Sftp\SftpAdapter' ) ) {
$this->markTestSkipped( 'Install Flysystem SFTP adapter' );
$object = new FlySftp( array( 'host' => 'test.rebex.net', 'username' => 'demo', 'password' => 'password' ) );
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
$object->has( 'test' );