You are here

public function vfsStreamWrapperFlockTestCase::streamIsNotLockedByDefault in Zircon Profile 8

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

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php, line 48

Class

vfsStreamWrapperFlockTestCase
Test for flock() implementation.

Namespace

org\bovigo\vfs

Code

public function streamIsNotLockedByDefault() {
  file_put_contents(vfsStream::url('root/foo.txt'), 'content');
  $this
    ->assertFalse($this->root
    ->getChild('foo.txt')
    ->isLocked());
}