for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aimeos\MW\Filesystem;
class FlyRackspaceTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
$this->markTestSkipped( 'Install Flysystem first' );
}
public function testGetProvider()
$object = new FlyRackspace( array() );
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
$object->has( 'test' );
public function testGetProviderContainer()
if( !class_exists( '\League\Flysystem\Rackspace\RackspaceAdapter' ) ) {
$this->markTestSkipped( 'Install Flysystem Rackspace adapter' );
$object = new FlyRackspace( array( 'container' => 'test' ) );
$this->setExpectedException( '\OpenCloud\Common\Exceptions\CredentialError' );