for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aimeos\MW\Filesystem;
class FlyDropboxTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
$this->markTestSkipped( 'Install Flysystem first' );
}
public function testGetProvider()
$object = new FlyDropbox( array() );
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
$this->setExpectedException( 'Aimeos\MW\Filesystem\Exception' );
$object->has( 'test' );
public function testGetProviderToken()
$config = array(
'accesstoken' => 'test',
);
$object = new FlyDropbox( $config );
public function testGetProviderAccess()
if( !class_exists( '\League\Flysystem\Dropbox\DropboxAdapter' ) ) {
$this->markTestSkipped( 'Install Flysystem Dropbox adapter' );
'appsecret' => 'test',
$this->setExpectedException( 'Exception' );