Пример #1
0
 /**
  * testAdapter
  *
  * @return void
  */
 public function testAdapter()
 {
     $result = StorageFactory::get('Local');
     $this->assertEquals(get_class($result), 'Gaufrette\\Filesystem');
     $result = StorageFactory::get('LocalFlysystem');
     $this->assertEquals(get_class($result), 'League\\Flysystem\\Adapter\\Local');
     try {
         StorageFactory::get('Does Not Exist');
         $this->fail('Exception not thrown!');
     } catch (\RuntimeException $e) {
     }
 }