public function testLock() { $file = new File(parent::$tempDir . "something.txt"); $file->open('w+'); $this->assertTrue($file->lock(LOCK_SH)); }