for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aimeos\Base\Filesystem;
class FlySftpTest extends \PHPUnit\Framework\TestCase
{
protected function setUp() : void
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\Base\Filesystem\Iface::class, $object );
$object->has( 'test' );