writeConfig(array('foo' => 'bar'), vfsStream::url('exampleDir/writable.ini') ); // assertions here } /** * @test */ public function directoryNotWritable() { vfsStream::setup('exampleDir', 0444); $example = new FilePermissionsExample(); $example->writeConfig(array('foo' => 'bar'), vfsStream::url('exampleDir/notWritable.ini') ); } } ?>