/**
  * @since 0.1.0
  */
 public function __construct($arg)
 {
     $this->method = 'mock';
     $this->errors = new WP_Error();
     if (!isset(self::$mock)) {
         self::$mock = new WP_Mock_Filesystem();
     }
 }
 /**
  * Test getting a list of files.
  *
  * @since 0.1.0
  */
 public function test_dirlist()
 {
     // See https://github.com/sebastianbergmann/phpunit/issues/454#issuecomment-32171137
     try {
         $this->fs->dirlist('/test');
         throw new Exception('Failed asserting that an exception was thrown.');
     } catch (Exception $e) {
         $this->assertEquals('WP_Filesystem_Mock::dirlist is not implemented yet.', $e->getMessage());
     }
 }