Issues (24)

custom/tests/MW/Filesystem/FlyRackspaceTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Aimeos\MW\Filesystem;
4
5
6
class FlyRackspaceTest extends \PHPUnit\Framework\TestCase
7
{
8
	protected function setUp() : void
9
	{
10
		if( !interface_exists( '\\League\\Flysystem\\FilesystemInterface' ) ) {
11
			$this->markTestSkipped( 'Install Flysystem first' );
12
		}
13
	}
14
15
16
	public function testGetProvider()
17
	{
18
		$object = new FlyRackspace( [] );
19
		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
20
21
		$this->expectException( \Aimeos\MW\Filesystem\Exception::class );
22
		$object->has( 'test' );
23
	}
24
25
26
	public function testGetProviderContainer()
27
	{
28
		if( !class_exists( '\League\Flysystem\Rackspace\RackspaceAdapter' ) ) {
29
			$this->markTestSkipped( 'Install Flysystem Rackspace adapter' );
30
		}
31
32
		$object = new FlyRackspace( array( 'container' => 'test' ) );
33
		$this->assertInstanceof( \Aimeos\MW\Filesystem\Iface::class, $object );
34
35
		$this->expectException( \OpenCloud\Common\Exceptions\CredentialError::class );
0 ignored issues
show
The type OpenCloud\Common\Exceptions\CredentialError was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
36
		$object->has( 'test' );
37
	}
38
}
39