| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class StandardTest extends \PHPUnit\Framework\TestCase |
||
| 7 | { |
||
| 8 | public function testGet() |
||
| 9 | { |
||
| 10 | $config = ['fs-media' => ['adapter' => 'Standard', 'basedir' => __DIR__]]; |
||
| 11 | $object = new \Aimeos\Base\Filesystem\Manager\Standard( $config ); |
||
| 12 | |||
| 13 | $this->assertInstanceof( 'Aimeos\Base\Filesystem\Iface', $object->get( 'fs-media' ) ); |
||
| 14 | } |
||
| 15 | |||
| 16 | |||
| 17 | public function testGetFallback() |
||
| 18 | { |
||
| 19 | $config = ['fs' => ['adapter' => 'Standard', 'basedir' => __DIR__]]; |
||
| 20 | $object = new \Aimeos\Base\Filesystem\Manager\Standard( $config ); |
||
| 21 | |||
| 22 | $this->assertInstanceof( 'Aimeos\Base\Filesystem\Iface', $object->get( 'fs-media' ) ); |
||
| 23 | } |
||
| 24 | |||
| 25 | |||
| 26 | public function testGetException() |
||
| 27 | { |
||
| 28 | $object = new \Aimeos\Base\Filesystem\Manager\Standard( [] ); |
||
| 29 | |||
| 30 | $this->expectException( \Aimeos\Base\Filesystem\Exception::class ); |
||
| 31 | $object->get( 'xx' ); |
||
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | public function testSleep() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |