org\bovigo\vfs\vfsStream::umask PHP Метод

umask() публичный статический Метод

If no value is given only the current umask setting is returned.
С версии: 0.8.0
public static umask ( integer $umask = null ) : integer
$umask integer new umask setting
Результат integer
    public static function umask($umask = null)
    {
        $oldUmask = self::$umask;
        if (null !== $umask) {
            self::$umask = $umask;
        }
        return $oldUmask;
    }

Usage Example

Пример #1
0
 /**
  * Sets up the required fixtures.
  */
 public function setUp()
 {
     $mockConfig = ['ClassContent' => [], 'Config' => ['bootstrap.yml' => file_get_contents(__DIR__ . '/Config/bootstrap.yml'), 'bundles.yml' => file_get_contents(__DIR__ . '/Config/bundles.yml'), 'config.yml' => file_get_contents(__DIR__ . '/Config/config.yml'), 'doctrine.yml' => file_get_contents(__DIR__ . '/Config/doctrine.yml'), 'logging.yml' => file_get_contents(__DIR__ . '/Config/logging.yml'), 'security.yml' => file_get_contents(__DIR__ . '/Config/security.yml'), 'services.yml' => file_get_contents(__DIR__ . '/Config/services.yml')], 'Ressources' => [], 'cache' => ['Proxies' => [], 'twig' => []]];
     vfsStream::umask(00);
     vfsStream::setup('repositorydir', 0777, $mockConfig);
     $mockApp = new MockBBApplication(null, null, false, $mockConfig, __DIR__ . '/../vendor');
     $this->bundle = $mockApp->getBundle('theme');
 }
All Usage Examples Of org\bovigo\vfs\vfsStream::umask