You are here

public function vfsStreamWrapperTestCase::is_executable 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::is_executable()

assert is_executable() works correct

@test

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function is_executable() {
  $this
    ->assertFalse(is_executable($this->baz1URL));
  $this->baz1
    ->chmod(0766);
  $this
    ->assertTrue(is_executable($this->baz1URL));
  $this
    ->assertFalse(is_executable($this->baz2URL));
}