/** * Test setting the file's mode recursively. * * @since 0.1.0 */ public function test_chmod_recursive() { $this->assertTrue($this->mock_fs->add_file('/test', array('type' => 'dir'))); $this->assertEquals(0755, $this->fs->getchmod('/test')); $this->assertEquals(0755, $this->fs->getchmod('/')); $this->assertTrue($this->fs->chmod('/', 0751, true)); $this->assertEquals(0751, $this->fs->getchmod('/test')); $this->assertEquals(0751, $this->fs->getchmod('/')); }