for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aimeos\MW\Filesystem;
class FlyPhpcrTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
$this->markTestSkipped( 'Install Flysystem first' );
}
public function testGetProvider()
$object = new FlyPhpcr( array() );
$this->assertInstanceof( '\Aimeos\MW\Filesystem\Iface', $object );
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
$object->has( 'test' );
public function testGetProviderRoot()
if( !class_exists( '\League\Flysystem\Phpcr\PhpcrAdapter' ) ) {
$this->markTestSkipped( 'Install Flysystem PHPCR adapter' );
$config = array(
'driver' => 'pdo_sqlite',
'path' => '/tmp/fly_phpcr.db',
'root' => '/',
);
$object = new FlyPhpcr( $config );
$this->setExpectedException( '\PHPCR\RepositoryException' );