You are here

public function vfsStreamWrapperTestCase::directoriesAndNonExistingFilesAreNeverExecutable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php \org\bovigo\vfs\vfsStreamWrapperTestCase::directoriesAndNonExistingFilesAreNeverExecutable()

assert is_executable() works correct

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php, line 214

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function directoriesAndNonExistingFilesAreNeverExecutable() {
  $this
    ->assertFalse(is_executable($this->fooURL));
  $this
    ->assertFalse(is_executable($this->fooURL . '/.'));
  $this
    ->assertFalse(is_executable($this->barURL));
  $this
    ->assertFalse(is_executable($this->barURL . '/.'));
  $this
    ->assertFalse(is_executable($this->fooURL . '/another'));
  $this
    ->assertFalse(is_executable(vfsStream::url('another')));
}