@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | $structureVisitor = new vfsStreamStructureVisitor(); |
27 | 27 | $this->assertEquals(array('foo.txt' => 'test'), |
28 | 28 | $structureVisitor->visitFile(vfsStream::newFile('foo.txt') |
29 | - ->withContent('test') |
|
30 | - ) |
|
31 | - ->getStructure() |
|
29 | + ->withContent('test') |
|
30 | + ) |
|
31 | + ->getStructure() |
|
32 | 32 | ); |
33 | 33 | } |
34 | 34 | |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | $structureVisitor = new vfsStreamStructureVisitor(); |
41 | 41 | $this->assertEquals(array('[foo]' => 'test'), |
42 | 42 | $structureVisitor->visitBlockDevice(vfsStream::newBlock('foo') |
43 | - ->withContent('test') |
|
44 | - ) |
|
45 | - ->getStructure() |
|
43 | + ->withContent('test') |
|
44 | + ) |
|
45 | + ->getStructure() |
|
46 | 46 | ); |
47 | 47 | } |
48 | 48 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $structureVisitor = new vfsStreamStructureVisitor(); |
55 | 55 | $this->assertEquals(array('baz' => array()), |
56 | 56 | $structureVisitor->visitDirectory(vfsStream::newDirectory('baz')) |
57 | - ->getStructure() |
|
57 | + ->getStructure() |
|
58 | 58 | ); |
59 | 59 | } |
60 | 60 | |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | public function visitRecursiveDirectoryStructure() |
65 | 65 | { |
66 | 66 | $root = vfsStream::setup('root', |
67 | - null, |
|
68 | - array('test' => array('foo' => array('test.txt' => 'hello'), |
|
69 | - 'baz.txt' => 'world' |
|
70 | - ), |
|
71 | - 'foo.txt' => '' |
|
72 | - ) |
|
67 | + null, |
|
68 | + array('test' => array('foo' => array('test.txt' => 'hello'), |
|
69 | + 'baz.txt' => 'world' |
|
70 | + ), |
|
71 | + 'foo.txt' => '' |
|
72 | + ) |
|
73 | 73 | ); |
74 | 74 | $structureVisitor = new vfsStreamStructureVisitor(); |
75 | 75 | $this->assertEquals(array('root' => array('test' => array('foo' => array('test.txt' => 'hello'), |
76 | - 'baz.txt' => 'world' |
|
77 | - ), |
|
78 | - 'foo.txt' => '' |
|
76 | + 'baz.txt' => 'world' |
|
77 | + ), |
|
78 | + 'foo.txt' => '' |
|
79 | 79 | ), |
80 | 80 | ), |
81 | 81 | $structureVisitor->visitDirectory($root) |
82 | - ->getStructure() |
|
82 | + ->getStructure() |
|
83 | 83 | ); |
84 | 84 | } |
85 | 85 | } |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | public function setUp() |
41 | 41 | { |
42 | 42 | vfsStream::setup() |
43 | - ->lastModified(50) |
|
44 | - ->lastAccessed(50) |
|
45 | - ->lastAttributeModified(50); |
|
43 | + ->lastModified(50) |
|
44 | + ->lastAccessed(50) |
|
45 | + ->lastAttributeModified(50); |
|
46 | 46 | $this->fooUrl = vfsStream::url('root/foo.txt'); |
47 | 47 | $this->barUrl = vfsStream::url('root/bar'); |
48 | 48 | $this->bazUrl = vfsStream::url('root/bar/baz.txt'); |
@@ -69,11 +69,11 @@ discard block |
||
69 | 69 | public function openFileChangesAttributeTimeOnly() |
70 | 70 | { |
71 | 71 | $file = vfsStream::newFile('foo.txt') |
72 | - ->withContent('test') |
|
73 | - ->at(vfsStreamWrapper::getRoot()) |
|
74 | - ->lastModified(100) |
|
75 | - ->lastAccessed(100) |
|
76 | - ->lastAttributeModified(100); |
|
72 | + ->withContent('test') |
|
73 | + ->at(vfsStreamWrapper::getRoot()) |
|
74 | + ->lastModified(100) |
|
75 | + ->lastAccessed(100) |
|
76 | + ->lastAttributeModified(100); |
|
77 | 77 | fclose(fopen($this->fooUrl, 'rb')); |
78 | 78 | $this->assertGreaterThan(time() - 2, fileatime($this->fooUrl)); |
79 | 79 | $this->assertLessThanOrEqual(time(), fileatime($this->fooUrl)); |
@@ -90,11 +90,11 @@ discard block |
||
90 | 90 | public function fileGetContentsChangesAttributeTimeOnly() |
91 | 91 | { |
92 | 92 | $file = vfsStream::newFile('foo.txt') |
93 | - ->withContent('test') |
|
94 | - ->at(vfsStreamWrapper::getRoot()) |
|
95 | - ->lastModified(100) |
|
96 | - ->lastAccessed(100) |
|
97 | - ->lastAttributeModified(100); |
|
93 | + ->withContent('test') |
|
94 | + ->at(vfsStreamWrapper::getRoot()) |
|
95 | + ->lastModified(100) |
|
96 | + ->lastAccessed(100) |
|
97 | + ->lastAttributeModified(100); |
|
98 | 98 | file_get_contents($this->fooUrl); |
99 | 99 | $this->assertGreaterThan(time() - 2, fileatime($this->fooUrl)); |
100 | 100 | $this->assertLessThanOrEqual(time(), fileatime($this->fooUrl)); |
@@ -111,11 +111,11 @@ discard block |
||
111 | 111 | public function openFileWithTruncateChangesAttributeAndModificationTime() |
112 | 112 | { |
113 | 113 | $file = vfsStream::newFile('foo.txt') |
114 | - ->withContent('test') |
|
115 | - ->at(vfsStreamWrapper::getRoot()) |
|
116 | - ->lastModified(100) |
|
117 | - ->lastAccessed(100) |
|
118 | - ->lastAttributeModified(100); |
|
114 | + ->withContent('test') |
|
115 | + ->at(vfsStreamWrapper::getRoot()) |
|
116 | + ->lastModified(100) |
|
117 | + ->lastAccessed(100) |
|
118 | + ->lastAttributeModified(100); |
|
119 | 119 | fclose(fopen($this->fooUrl, 'wb')); |
120 | 120 | $this->assertGreaterThan(time() - 2, filemtime($this->fooUrl)); |
121 | 121 | $this->assertGreaterThan(time() - 2, fileatime($this->fooUrl)); |
@@ -132,11 +132,11 @@ discard block |
||
132 | 132 | public function readFileChangesAccessTime() |
133 | 133 | { |
134 | 134 | $file = vfsStream::newFile('foo.txt') |
135 | - ->withContent('test') |
|
136 | - ->at(vfsStreamWrapper::getRoot()) |
|
137 | - ->lastModified(100) |
|
138 | - ->lastAccessed(100) |
|
139 | - ->lastAttributeModified(100); |
|
135 | + ->withContent('test') |
|
136 | + ->at(vfsStreamWrapper::getRoot()) |
|
137 | + ->lastModified(100) |
|
138 | + ->lastAccessed(100) |
|
139 | + ->lastAttributeModified(100); |
|
140 | 140 | $fp = fopen($this->fooUrl, 'rb'); |
141 | 141 | $openTime = time(); |
142 | 142 | sleep(2); |
@@ -155,10 +155,10 @@ discard block |
||
155 | 155 | public function writeFileChangesModificationTime() |
156 | 156 | { |
157 | 157 | $file = vfsStream::newFile('foo.txt') |
158 | - ->at(vfsStreamWrapper::getRoot()) |
|
159 | - ->lastModified(100) |
|
160 | - ->lastAccessed(100) |
|
161 | - ->lastAttributeModified(100); |
|
158 | + ->at(vfsStreamWrapper::getRoot()) |
|
159 | + ->lastModified(100) |
|
160 | + ->lastAccessed(100) |
|
161 | + ->lastAttributeModified(100); |
|
162 | 162 | $fp = fopen($this->fooUrl, 'wb'); |
163 | 163 | $openTime = time(); |
164 | 164 | sleep(2); |
@@ -229,10 +229,10 @@ discard block |
||
229 | 229 | $dir = vfsStream::newDirectory('bar') |
230 | 230 | ->at(vfsStreamWrapper::getRoot()); |
231 | 231 | $file = vfsStream::newFile('baz.txt') |
232 | - ->at($dir) |
|
233 | - ->lastModified(100) |
|
234 | - ->lastAccessed(100) |
|
235 | - ->lastAttributeModified(100); |
|
232 | + ->at($dir) |
|
233 | + ->lastModified(100) |
|
234 | + ->lastAccessed(100) |
|
235 | + ->lastAttributeModified(100); |
|
236 | 236 | $dir->lastModified(100) |
237 | 237 | ->lastAccessed(100) |
238 | 238 | ->lastAttributeModified(100); |
@@ -250,20 +250,20 @@ discard block |
||
250 | 250 | public function renameFileChangesAttributeAndModificationTimeOfAffectedDirectories() |
251 | 251 | { |
252 | 252 | $target = vfsStream::newDirectory('target') |
253 | - ->at(vfsStreamWrapper::getRoot()) |
|
254 | - ->lastModified(200) |
|
255 | - ->lastAccessed(200) |
|
256 | - ->lastAttributeModified(200); |
|
253 | + ->at(vfsStreamWrapper::getRoot()) |
|
254 | + ->lastModified(200) |
|
255 | + ->lastAccessed(200) |
|
256 | + ->lastAttributeModified(200); |
|
257 | 257 | $source = vfsStream::newDirectory('bar') |
258 | - ->at(vfsStreamWrapper::getRoot()); |
|
258 | + ->at(vfsStreamWrapper::getRoot()); |
|
259 | 259 | $file = vfsStream::newFile('baz.txt') |
260 | - ->at($source) |
|
261 | - ->lastModified(300) |
|
262 | - ->lastAccessed(300) |
|
263 | - ->lastAttributeModified(300); |
|
260 | + ->at($source) |
|
261 | + ->lastModified(300) |
|
262 | + ->lastAccessed(300) |
|
263 | + ->lastAttributeModified(300); |
|
264 | 264 | $source->lastModified(100) |
265 | - ->lastAccessed(100) |
|
266 | - ->lastAttributeModified(100); |
|
265 | + ->lastAccessed(100) |
|
266 | + ->lastAttributeModified(100); |
|
267 | 267 | rename($this->bazUrl, vfsStream::url('root/target/baz.txt')); |
268 | 268 | $this->assertLessThanOrEqual(time(), filemtime($this->barUrl)); |
269 | 269 | $this->assertLessThanOrEqual(time(), filectime($this->barUrl)); |
@@ -282,20 +282,20 @@ discard block |
||
282 | 282 | public function renameFileDoesNotChangeFileTimesOfFileItself() |
283 | 283 | { |
284 | 284 | $target = vfsStream::newDirectory('target') |
285 | - ->at(vfsStreamWrapper::getRoot()) |
|
286 | - ->lastModified(200) |
|
287 | - ->lastAccessed(200) |
|
288 | - ->lastAttributeModified(200); |
|
285 | + ->at(vfsStreamWrapper::getRoot()) |
|
286 | + ->lastModified(200) |
|
287 | + ->lastAccessed(200) |
|
288 | + ->lastAttributeModified(200); |
|
289 | 289 | $source = vfsStream::newDirectory('bar') |
290 | - ->at(vfsStreamWrapper::getRoot()); |
|
290 | + ->at(vfsStreamWrapper::getRoot()); |
|
291 | 291 | $file = vfsStream::newFile('baz.txt') |
292 | - ->at($source) |
|
293 | - ->lastModified(300) |
|
294 | - ->lastAccessed(300) |
|
295 | - ->lastAttributeModified(300); |
|
292 | + ->at($source) |
|
293 | + ->lastModified(300) |
|
294 | + ->lastAccessed(300) |
|
295 | + ->lastAttributeModified(300); |
|
296 | 296 | $source->lastModified(100) |
297 | - ->lastAccessed(100) |
|
298 | - ->lastAttributeModified(100); |
|
297 | + ->lastAccessed(100) |
|
298 | + ->lastAttributeModified(100); |
|
299 | 299 | rename($this->bazUrl, vfsStream::url('root/target/baz.txt')); |
300 | 300 | $this->assertEquals(300, filemtime(vfsStream::url('root/target/baz.txt'))); |
301 | 301 | $this->assertEquals(300, filectime(vfsStream::url('root/target/baz.txt'))); |
@@ -71,10 +71,10 @@ discard block |
||
71 | 71 | public function considersAllFilesForQuota() |
72 | 72 | { |
73 | 73 | vfsStream::newFile('foo.txt') |
74 | - ->withContent('foo') |
|
75 | - ->at(vfsStream::newDirectory('bar') |
|
76 | - ->at($this->root) |
|
77 | - ); |
|
74 | + ->withContent('foo') |
|
75 | + ->at(vfsStream::newDirectory('bar') |
|
76 | + ->at($this->root) |
|
77 | + ); |
|
78 | 78 | try { |
79 | 79 | file_put_contents(vfsStream::url('root/file.txt'), '12345678901'); |
80 | 80 | } catch (\PHPUnit_Framework_Error $e) { |
@@ -176,10 +176,10 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | vfsStream::newFile('bar.txt') |
179 | - ->withContent('bar') |
|
180 | - ->at(vfsStream::newDirectory('bar') |
|
181 | - ->at($this->root) |
|
182 | - ); |
|
179 | + ->withContent('bar') |
|
180 | + ->at(vfsStream::newDirectory('bar') |
|
181 | + ->at($this->root) |
|
182 | + ); |
|
183 | 183 | $fp = fopen(vfsStream::url('root/file.txt'), 'w+'); |
184 | 184 | $this->assertTrue(ftruncate($fp, 11)); |
185 | 185 | fclose($fp); |
@@ -206,10 +206,10 @@ discard block |
||
206 | 206 | } |
207 | 207 | |
208 | 208 | vfsStream::newFile('bar.txt') |
209 | - ->withContent('1234567890') |
|
210 | - ->at(vfsStream::newDirectory('bar') |
|
211 | - ->at($this->root) |
|
212 | - ); |
|
209 | + ->withContent('1234567890') |
|
210 | + ->at(vfsStream::newDirectory('bar') |
|
211 | + ->at($this->root) |
|
212 | + ); |
|
213 | 213 | $fp = fopen(vfsStream::url('root/file.txt'), 'w+'); |
214 | 214 | $this->assertFalse(ftruncate($fp, 11)); |
215 | 215 | fclose($fp); |
@@ -320,7 +320,7 @@ |
||
320 | 320 | $this->assertEquals( |
321 | 321 | 'foobarbaz', |
322 | 322 | $this->file->withContent($mockFileContent) |
323 | - ->getContent() |
|
323 | + ->getContent() |
|
324 | 324 | ); |
325 | 325 | } |
326 | 326 |
@@ -396,7 +396,7 @@ |
||
396 | 396 | vfsStreamWrapper::register(); |
397 | 397 | vfsStreamWrapper::setRoot(new vfsStreamDirectory('root', 0770)); |
398 | 398 | vfsStreamWrapper::getRoot()->chgrp(vfsStream::GROUP_USER_1) |
399 | - ->chown(vfsStream::OWNER_USER_1); |
|
399 | + ->chown(vfsStream::OWNER_USER_1); |
|
400 | 400 | $this->assertFalse(mkdir(vfsStream::url('root/doesNotWork'))); |
401 | 401 | $this->assertFalse(vfsStreamWrapper::getRoot()->hasChild('doesNotWork')); |
402 | 402 | } |
@@ -256,8 +256,8 @@ discard block |
||
256 | 256 | public function setupWithEmptyArrayIsEqualToSetup() |
257 | 257 | { |
258 | 258 | $root = vfsStream::setup('example', |
259 | - 0755, |
|
260 | - array() |
|
259 | + 0755, |
|
260 | + array() |
|
261 | 261 | ); |
262 | 262 | $this->assertEquals('example', $root->getName()); |
263 | 263 | $this->assertEquals(0755, $root->getPermissions()); |
@@ -273,8 +273,8 @@ discard block |
||
273 | 273 | public function setupArraysAreTurnedIntoSubdirectories() |
274 | 274 | { |
275 | 275 | $root = vfsStream::setup('root', |
276 | - null, |
|
277 | - array('test' => array()) |
|
276 | + null, |
|
277 | + array('test' => array()) |
|
278 | 278 | ); |
279 | 279 | $this->assertTrue($root->hasChildren()); |
280 | 280 | $this->assertTrue($root->hasChild('test')); |
@@ -293,8 +293,8 @@ discard block |
||
293 | 293 | public function setupStringsAreTurnedIntoFilesWithContent() |
294 | 294 | { |
295 | 295 | $root = vfsStream::setup('root', |
296 | - null, |
|
297 | - array('test.txt' => 'some content') |
|
296 | + null, |
|
297 | + array('test.txt' => 'some content') |
|
298 | 298 | ); |
299 | 299 | $this->assertTrue($root->hasChildren()); |
300 | 300 | $this->assertTrue($root->hasChild('test.txt')); |
@@ -310,11 +310,11 @@ discard block |
||
310 | 310 | public function setupWorksRecursively() |
311 | 311 | { |
312 | 312 | $root = vfsStream::setup('root', |
313 | - null, |
|
314 | - array('test' => array('foo' => array('test.txt' => 'hello'), |
|
315 | - 'baz.txt' => 'world' |
|
316 | - ) |
|
317 | - ) |
|
313 | + null, |
|
314 | + array('test' => array('foo' => array('test.txt' => 'hello'), |
|
315 | + 'baz.txt' => 'world' |
|
316 | + ) |
|
317 | + ) |
|
318 | 318 | ); |
319 | 319 | $this->assertTrue($root->hasChildren()); |
320 | 320 | $this->assertTrue($root->hasChild('test')); |
@@ -333,15 +333,15 @@ discard block |
||
333 | 333 | } |
334 | 334 | |
335 | 335 | /** |
336 | - * @test |
|
337 | - * @group issue_17 |
|
338 | - * @group issue_20 |
|
339 | - */ |
|
336 | + * @test |
|
337 | + * @group issue_17 |
|
338 | + * @group issue_20 |
|
339 | + */ |
|
340 | 340 | public function setupCastsNumericDirectoriesToStrings() |
341 | 341 | { |
342 | 342 | $root = vfsStream::setup('root', |
343 | - null, |
|
344 | - array(2011 => array ('test.txt' => 'some content')) |
|
343 | + null, |
|
344 | + array(2011 => array ('test.txt' => 'some content')) |
|
345 | 345 | ); |
346 | 346 | $this->assertTrue($root->hasChild('2011')); |
347 | 347 | |
@@ -403,11 +403,11 @@ discard block |
||
403 | 403 | public function createWorksRecursively() |
404 | 404 | { |
405 | 405 | $baseDir = vfsStream::create(array('test' => array('foo' => array('test.txt' => 'hello'), |
406 | - 'baz.txt' => 'world' |
|
407 | - ) |
|
408 | - ), |
|
409 | - new vfsStreamDirectory('baseDir') |
|
410 | - ); |
|
406 | + 'baz.txt' => 'world' |
|
407 | + ) |
|
408 | + ), |
|
409 | + new vfsStreamDirectory('baseDir') |
|
410 | + ); |
|
411 | 411 | $this->assertTrue($baseDir->hasChildren()); |
412 | 412 | $this->assertTrue($baseDir->hasChild('test')); |
413 | 413 | $test = $baseDir->getChild('test'); |
@@ -433,11 +433,11 @@ discard block |
||
433 | 433 | { |
434 | 434 | $root = vfsStream::setup(); |
435 | 435 | $this->assertSame($root, |
436 | - vfsStream::create(array('test' => array('foo' => array('test.txt' => 'hello'), |
|
437 | - 'baz.txt' => 'world' |
|
436 | + vfsStream::create(array('test' => array('foo' => array('test.txt' => 'hello'), |
|
437 | + 'baz.txt' => 'world' |
|
438 | 438 | ) |
439 | 439 | ) |
440 | - ) |
|
440 | + ) |
|
441 | 441 | ); |
442 | 442 | $this->assertTrue($root->hasChildren()); |
443 | 443 | $this->assertTrue($root->hasChild('test')); |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | { |
478 | 478 | $root = vfsStream::setup(); |
479 | 479 | $this->assertSame($root, |
480 | - vfsStream::create(array('test.txt' => 'some content')) |
|
480 | + vfsStream::create(array('test.txt' => 'some content')) |
|
481 | 481 | ); |
482 | 482 | $this->assertTrue($root->hasChildren()); |
483 | 483 | $this->assertTrue($root->hasChild('test.txt')); |
@@ -485,10 +485,10 @@ discard block |
||
485 | 485 | } |
486 | 486 | |
487 | 487 | /** |
488 | - * @test |
|
489 | - * @group issue_20 |
|
490 | - * @since 0.11.0 |
|
491 | - */ |
|
488 | + * @test |
|
489 | + * @group issue_20 |
|
490 | + * @since 0.11.0 |
|
491 | + */ |
|
492 | 492 | public function createCastsNumericDirectoriesToStrings() |
493 | 493 | { |
494 | 494 | $baseDir = vfsStream::create(array(2011 => array ('test.txt' => 'some content')), new vfsStreamDirectory('baseDir')); |
@@ -499,15 +499,15 @@ discard block |
||
499 | 499 | } |
500 | 500 | |
501 | 501 | /** |
502 | - * @test |
|
503 | - * @group issue_20 |
|
504 | - * @since 0.11.0 |
|
505 | - */ |
|
502 | + * @test |
|
503 | + * @group issue_20 |
|
504 | + * @since 0.11.0 |
|
505 | + */ |
|
506 | 506 | public function createCastsNumericDirectoriesToStringsWithRoot() |
507 | 507 | { |
508 | 508 | $root = vfsStream::setup(); |
509 | 509 | $this->assertSame($root, |
510 | - vfsStream::create(array(2011 => array ('test.txt' => 'some content'))) |
|
510 | + vfsStream::create(array(2011 => array ('test.txt' => 'some content'))) |
|
511 | 511 | ); |
512 | 512 | $this->assertTrue($root->hasChild('2011')); |
513 | 513 | |
@@ -608,8 +608,8 @@ discard block |
||
608 | 608 | public function copyFromEmptyFolder() |
609 | 609 | { |
610 | 610 | $baseDir = vfsStream::copyFromFileSystem($this->getFileSystemCopyDir() . '/emptyFolder', |
611 | - vfsStream::newDirectory('test') |
|
612 | - ); |
|
611 | + vfsStream::newDirectory('test') |
|
612 | + ); |
|
613 | 613 | $baseDir->removeChild('.gitignore'); |
614 | 614 | $this->assertFalse($baseDir->hasChildren()); |
615 | 615 | } |
@@ -637,9 +637,9 @@ discard block |
||
637 | 637 | public function copyFromWithSubFolders() |
638 | 638 | { |
639 | 639 | $baseDir = vfsStream::copyFromFileSystem($this->getFileSystemCopyDir(), |
640 | - vfsStream::newDirectory('test'), |
|
641 | - 3 |
|
642 | - ); |
|
640 | + vfsStream::newDirectory('test'), |
|
641 | + 3 |
|
642 | + ); |
|
643 | 643 | $this->assertTrue($baseDir->hasChildren()); |
644 | 644 | $this->assertTrue($baseDir->hasChild('emptyFolder')); |
645 | 645 | $this->assertTrue($baseDir->hasChild('withSubfolders')); |
@@ -662,8 +662,8 @@ discard block |
||
662 | 662 | $root = vfsStream::setup(); |
663 | 663 | $this->assertEquals($root, |
664 | 664 | vfsStream::copyFromFileSystem($this->getFileSystemCopyDir(), |
665 | - null, |
|
666 | - 3 |
|
665 | + null, |
|
666 | + 3 |
|
667 | 667 | ) |
668 | 668 | ); |
669 | 669 | $this->assertTrue($root->hasChildren()); |
@@ -694,16 +694,16 @@ discard block |
||
694 | 694 | $root = vfsStream::setup(); |
695 | 695 | $this->assertEquals($root, |
696 | 696 | vfsStream::copyFromFileSystem($copyDir, |
697 | - null |
|
697 | + null |
|
698 | 698 | ) |
699 | 699 | ); |
700 | 700 | $this->assertEquals(fileperms($copyDir . '/withSubfolders') - vfsStreamContent::TYPE_DIR, |
701 | 701 | $root->getChild('withSubfolders') |
702 | - ->getPermissions() |
|
702 | + ->getPermissions() |
|
703 | 703 | ); |
704 | 704 | $this->assertEquals(fileperms($copyDir . '/withSubfolders/aFile.txt') - vfsStreamContent::TYPE_FILE, |
705 | 705 | $root->getChild('withSubfolders/aFile.txt') |
706 | - ->getPermissions() |
|
706 | + ->getPermissions() |
|
707 | 707 | ); |
708 | 708 | } |
709 | 709 |
@@ -40,13 +40,13 @@ discard block |
||
40 | 40 | $this->dir = new vfsStreamDirectory('foo'); |
41 | 41 | $this->mockChild1 = $this->bc_getMock('org\\bovigo\\vfs\\vfsStreamContent'); |
42 | 42 | $this->mockChild1->expects($this->any()) |
43 | - ->method('getName') |
|
44 | - ->will($this->returnValue('bar')); |
|
43 | + ->method('getName') |
|
44 | + ->will($this->returnValue('bar')); |
|
45 | 45 | $this->dir->addChild($this->mockChild1); |
46 | 46 | $this->mockChild2 = $this->bc_getMock('org\\bovigo\\vfs\\vfsStreamContent'); |
47 | 47 | $this->mockChild2->expects($this->any()) |
48 | - ->method('getName') |
|
49 | - ->will($this->returnValue('baz')); |
|
48 | + ->method('getName') |
|
49 | + ->will($this->returnValue('baz')); |
|
50 | 50 | $this->dir->addChild($this->mockChild2); |
51 | 51 | } |
52 | 52 | |
@@ -64,11 +64,11 @@ discard block |
||
64 | 64 | public function provideSwitchWithExpectations() |
65 | 65 | { |
66 | 66 | return array(array(function() { vfsStream::disableDotfiles(); }, |
67 | - array() |
|
68 | - ), |
|
69 | - array(function() { vfsStream::enableDotfiles(); }, |
|
70 | - array('.', '..') |
|
71 | - ) |
|
67 | + array() |
|
68 | + ), |
|
69 | + array(function() { vfsStream::enableDotfiles(); }, |
|
70 | + array('.', '..') |
|
71 | + ) |
|
72 | 72 | ); |
73 | 73 | } |
74 | 74 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | public function provideSwitchWithExpectations() |
32 | 32 | { |
33 | 33 | return array(array(function() { vfsStream::disableDotfiles(); }, array('bar', 'baz2')), |
34 | - array(function() { vfsStream::enableDotfiles(); }, array('.', '..', 'bar', 'baz2')) |
|
34 | + array(function() { vfsStream::enableDotfiles(); }, array('.', '..', 'bar', 'baz2')) |
|
35 | 35 | ); |
36 | 36 | } |
37 | 37 | |
@@ -235,41 +235,41 @@ discard block |
||
235 | 235 | vfsStream::enableDotfiles(); |
236 | 236 | vfsStream::setup(); |
237 | 237 | $structure = array( |
238 | - 'Core' => array( |
|
238 | + 'Core' => array( |
|
239 | 239 | 'AbstractFactory' => array( |
240 | - 'test.php' => 'some text content', |
|
241 | - 'other.php' => 'Some more text content', |
|
242 | - 'Invalid.csv' => 'Something else', |
|
243 | - ), |
|
240 | + 'test.php' => 'some text content', |
|
241 | + 'other.php' => 'Some more text content', |
|
242 | + 'Invalid.csv' => 'Something else', |
|
243 | + ), |
|
244 | 244 | 'AnEmptyFolder' => array(), |
245 | 245 | 'badlocation.php' => 'some bad content', |
246 | - ) |
|
246 | + ) |
|
247 | 247 | ); |
248 | 248 | $root = vfsStream::create($structure); |
249 | 249 | $rootPath = vfsStream::url($root->getName()); |
250 | 250 | |
251 | 251 | $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($rootPath), |
252 | - \RecursiveIteratorIterator::CHILD_FIRST); |
|
252 | + \RecursiveIteratorIterator::CHILD_FIRST); |
|
253 | 253 | $pathes = array(); |
254 | 254 | foreach ($iterator as $fullFileName => $fileSPLObject) { |
255 | 255 | $pathes[] = $fullFileName; |
256 | 256 | } |
257 | 257 | |
258 | 258 | $this->assertEquals(array('vfs://root'.DIRECTORY_SEPARATOR.'.', |
259 | - 'vfs://root'.DIRECTORY_SEPARATOR.'..', |
|
260 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'.', |
|
261 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'..', |
|
262 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'.', |
|
263 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'..', |
|
264 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'test.php', |
|
265 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'other.php', |
|
266 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'Invalid.csv', |
|
267 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory', |
|
268 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder'.DIRECTORY_SEPARATOR.'.', |
|
269 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder'.DIRECTORY_SEPARATOR.'..', |
|
270 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder', |
|
271 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'badlocation.php', |
|
272 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core' |
|
259 | + 'vfs://root'.DIRECTORY_SEPARATOR.'..', |
|
260 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'.', |
|
261 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'..', |
|
262 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'.', |
|
263 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'..', |
|
264 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'test.php', |
|
265 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'other.php', |
|
266 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'Invalid.csv', |
|
267 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory', |
|
268 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder'.DIRECTORY_SEPARATOR.'.', |
|
269 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder'.DIRECTORY_SEPARATOR.'..', |
|
270 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder', |
|
271 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'badlocation.php', |
|
272 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core' |
|
273 | 273 | ), |
274 | 274 | $pathes |
275 | 275 | ); |
@@ -284,33 +284,33 @@ discard block |
||
284 | 284 | vfsStream::disableDotfiles(); |
285 | 285 | vfsStream::setup(); |
286 | 286 | $structure = array( |
287 | - 'Core' => array( |
|
287 | + 'Core' => array( |
|
288 | 288 | 'AbstractFactory' => array( |
289 | - 'test.php' => 'some text content', |
|
290 | - 'other.php' => 'Some more text content', |
|
291 | - 'Invalid.csv' => 'Something else', |
|
292 | - ), |
|
289 | + 'test.php' => 'some text content', |
|
290 | + 'other.php' => 'Some more text content', |
|
291 | + 'Invalid.csv' => 'Something else', |
|
292 | + ), |
|
293 | 293 | 'AnEmptyFolder' => array(), |
294 | 294 | 'badlocation.php' => 'some bad content', |
295 | - ) |
|
295 | + ) |
|
296 | 296 | ); |
297 | 297 | $root = vfsStream::create($structure); |
298 | 298 | $rootPath = vfsStream::url($root->getName()); |
299 | 299 | |
300 | 300 | $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($rootPath), |
301 | - \RecursiveIteratorIterator::CHILD_FIRST); |
|
301 | + \RecursiveIteratorIterator::CHILD_FIRST); |
|
302 | 302 | $pathes = array(); |
303 | 303 | foreach ($iterator as $fullFileName => $fileSPLObject) { |
304 | 304 | $pathes[] = $fullFileName; |
305 | 305 | } |
306 | 306 | |
307 | 307 | $this->assertEquals(array('vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'test.php', |
308 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'other.php', |
|
309 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'Invalid.csv', |
|
310 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory', |
|
311 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder', |
|
312 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'badlocation.php', |
|
313 | - 'vfs://root'.DIRECTORY_SEPARATOR.'Core' |
|
308 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'other.php', |
|
309 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory'.DIRECTORY_SEPARATOR.'Invalid.csv', |
|
310 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AbstractFactory', |
|
311 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'AnEmptyFolder', |
|
312 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core'.DIRECTORY_SEPARATOR.'badlocation.php', |
|
313 | + 'vfs://root'.DIRECTORY_SEPARATOR.'Core' |
|
314 | 314 | ), |
315 | 315 | $pathes |
316 | 316 | ); |
@@ -49,40 +49,40 @@ discard block |
||
49 | 49 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0000); |
50 | 50 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
51 | 51 | vfsStream::getCurrentGroup() |
52 | - ) |
|
53 | - ); |
|
52 | + ) |
|
53 | + ); |
|
54 | 54 | $this->assertFalse($abstractContent->isReadable(-1, |
55 | 55 | vfsStream::getCurrentGroup() |
56 | - ) |
|
57 | - ); |
|
56 | + ) |
|
57 | + ); |
|
58 | 58 | $this->assertFalse($abstractContent->isReadable(-1, |
59 | 59 | -1 |
60 | - ) |
|
61 | - ); |
|
60 | + ) |
|
61 | + ); |
|
62 | 62 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
63 | 63 | vfsStream::getCurrentGroup() |
64 | - ) |
|
65 | - ); |
|
64 | + ) |
|
65 | + ); |
|
66 | 66 | $this->assertFalse($abstractContent->isWritable(-1, |
67 | 67 | vfsStream::getCurrentGroup() |
68 | - ) |
|
69 | - ); |
|
68 | + ) |
|
69 | + ); |
|
70 | 70 | $this->assertFalse($abstractContent->isWritable(-1, |
71 | 71 | -1 |
72 | - ) |
|
73 | - ); |
|
72 | + ) |
|
73 | + ); |
|
74 | 74 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
75 | 75 | vfsStream::getCurrentGroup() |
76 | - ) |
|
77 | - ); |
|
76 | + ) |
|
77 | + ); |
|
78 | 78 | $this->assertFalse($abstractContent->isExecutable(-1, |
79 | - vfsStream::getCurrentGroup() |
|
80 | - ) |
|
81 | - ); |
|
79 | + vfsStream::getCurrentGroup() |
|
80 | + ) |
|
81 | + ); |
|
82 | 82 | $this->assertFalse($abstractContent->isExecutable(-1, |
83 | 83 | -1 |
84 | - ) |
|
85 | - ); |
|
84 | + ) |
|
85 | + ); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -95,40 +95,40 @@ discard block |
||
95 | 95 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0100); |
96 | 96 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
97 | 97 | vfsStream::getCurrentGroup() |
98 | - ) |
|
99 | - ); |
|
98 | + ) |
|
99 | + ); |
|
100 | 100 | $this->assertFalse($abstractContent->isReadable(-1, |
101 | 101 | vfsStream::getCurrentGroup() |
102 | - ) |
|
103 | - ); |
|
102 | + ) |
|
103 | + ); |
|
104 | 104 | $this->assertFalse($abstractContent->isReadable(-1, |
105 | 105 | -1 |
106 | - ) |
|
107 | - ); |
|
106 | + ) |
|
107 | + ); |
|
108 | 108 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
109 | 109 | vfsStream::getCurrentGroup() |
110 | - ) |
|
111 | - ); |
|
110 | + ) |
|
111 | + ); |
|
112 | 112 | $this->assertFalse($abstractContent->isWritable(-1, |
113 | 113 | vfsStream::getCurrentGroup() |
114 | - ) |
|
115 | - ); |
|
114 | + ) |
|
115 | + ); |
|
116 | 116 | $this->assertFalse($abstractContent->isWritable(-1, |
117 | 117 | -1 |
118 | - ) |
|
119 | - ); |
|
118 | + ) |
|
119 | + ); |
|
120 | 120 | $this->assertTrue($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
121 | - vfsStream::getCurrentGroup() |
|
121 | + vfsStream::getCurrentGroup() |
|
122 | 122 | ) |
123 | - ); |
|
123 | + ); |
|
124 | 124 | $this->assertFalse($abstractContent->isExecutable(-1, |
125 | - vfsStream::getCurrentGroup() |
|
126 | - ) |
|
127 | - ); |
|
125 | + vfsStream::getCurrentGroup() |
|
126 | + ) |
|
127 | + ); |
|
128 | 128 | $this->assertFalse($abstractContent->isExecutable(-1, |
129 | 129 | -1 |
130 | - ) |
|
131 | - ); |
|
130 | + ) |
|
131 | + ); |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
@@ -141,40 +141,40 @@ discard block |
||
141 | 141 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0010); |
142 | 142 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
143 | 143 | vfsStream::getCurrentGroup() |
144 | - ) |
|
145 | - ); |
|
144 | + ) |
|
145 | + ); |
|
146 | 146 | $this->assertFalse($abstractContent->isReadable(-1, |
147 | 147 | vfsStream::getCurrentGroup() |
148 | - ) |
|
149 | - ); |
|
148 | + ) |
|
149 | + ); |
|
150 | 150 | $this->assertFalse($abstractContent->isReadable(-1, |
151 | 151 | -1 |
152 | - ) |
|
153 | - ); |
|
152 | + ) |
|
153 | + ); |
|
154 | 154 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
155 | 155 | vfsStream::getCurrentGroup() |
156 | - ) |
|
157 | - ); |
|
156 | + ) |
|
157 | + ); |
|
158 | 158 | $this->assertFalse($abstractContent->isWritable(-1, |
159 | 159 | vfsStream::getCurrentGroup() |
160 | - ) |
|
161 | - ); |
|
160 | + ) |
|
161 | + ); |
|
162 | 162 | $this->assertFalse($abstractContent->isWritable(-1, |
163 | 163 | -1 |
164 | - ) |
|
165 | - ); |
|
164 | + ) |
|
165 | + ); |
|
166 | 166 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
167 | - vfsStream::getCurrentGroup() |
|
168 | - ) |
|
169 | - ); |
|
167 | + vfsStream::getCurrentGroup() |
|
168 | + ) |
|
169 | + ); |
|
170 | 170 | $this->assertTrue($abstractContent->isExecutable(-1, |
171 | - vfsStream::getCurrentGroup() |
|
171 | + vfsStream::getCurrentGroup() |
|
172 | 172 | ) |
173 | - ); |
|
173 | + ); |
|
174 | 174 | $this->assertFalse($abstractContent->isExecutable(-1, |
175 | 175 | -1 |
176 | - ) |
|
177 | - ); |
|
176 | + ) |
|
177 | + ); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
@@ -187,40 +187,40 @@ discard block |
||
187 | 187 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0001); |
188 | 188 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
189 | 189 | vfsStream::getCurrentGroup() |
190 | - ) |
|
191 | - ); |
|
190 | + ) |
|
191 | + ); |
|
192 | 192 | $this->assertFalse($abstractContent->isReadable(-1, |
193 | 193 | vfsStream::getCurrentGroup() |
194 | - ) |
|
195 | - ); |
|
194 | + ) |
|
195 | + ); |
|
196 | 196 | $this->assertFalse($abstractContent->isReadable(-1, |
197 | 197 | -1 |
198 | - ) |
|
199 | - ); |
|
198 | + ) |
|
199 | + ); |
|
200 | 200 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
201 | 201 | vfsStream::getCurrentGroup() |
202 | - ) |
|
203 | - ); |
|
202 | + ) |
|
203 | + ); |
|
204 | 204 | $this->assertFalse($abstractContent->isWritable(-1, |
205 | 205 | vfsStream::getCurrentGroup() |
206 | - ) |
|
207 | - ); |
|
206 | + ) |
|
207 | + ); |
|
208 | 208 | $this->assertFalse($abstractContent->isWritable(-1, |
209 | 209 | -1 |
210 | - ) |
|
211 | - ); |
|
210 | + ) |
|
211 | + ); |
|
212 | 212 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
213 | - vfsStream::getCurrentGroup() |
|
214 | - ) |
|
215 | - ); |
|
213 | + vfsStream::getCurrentGroup() |
|
214 | + ) |
|
215 | + ); |
|
216 | 216 | $this->assertFalse($abstractContent->isExecutable(-1, |
217 | - vfsStream::getCurrentGroup() |
|
218 | - ) |
|
219 | - ); |
|
217 | + vfsStream::getCurrentGroup() |
|
218 | + ) |
|
219 | + ); |
|
220 | 220 | $this->assertTrue($abstractContent->isExecutable(-1, |
221 | 221 | -1 |
222 | 222 | ) |
223 | - ); |
|
223 | + ); |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
@@ -233,40 +233,40 @@ discard block |
||
233 | 233 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0200); |
234 | 234 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
235 | 235 | vfsStream::getCurrentGroup() |
236 | - ) |
|
237 | - ); |
|
236 | + ) |
|
237 | + ); |
|
238 | 238 | $this->assertFalse($abstractContent->isReadable(-1, |
239 | 239 | vfsStream::getCurrentGroup() |
240 | - ) |
|
241 | - ); |
|
240 | + ) |
|
241 | + ); |
|
242 | 242 | $this->assertFalse($abstractContent->isReadable(-1, |
243 | 243 | -1 |
244 | - ) |
|
245 | - ); |
|
244 | + ) |
|
245 | + ); |
|
246 | 246 | $this->assertTrue($abstractContent->isWritable(vfsStream::getCurrentUser(), |
247 | - vfsStream::getCurrentGroup() |
|
247 | + vfsStream::getCurrentGroup() |
|
248 | 248 | ) |
249 | - ); |
|
249 | + ); |
|
250 | 250 | $this->assertFalse($abstractContent->isWritable(-1, |
251 | 251 | vfsStream::getCurrentGroup() |
252 | - ) |
|
253 | - ); |
|
252 | + ) |
|
253 | + ); |
|
254 | 254 | $this->assertFalse($abstractContent->isWritable(-1, |
255 | 255 | -1 |
256 | - ) |
|
257 | - ); |
|
256 | + ) |
|
257 | + ); |
|
258 | 258 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
259 | - vfsStream::getCurrentGroup() |
|
260 | - ) |
|
261 | - ); |
|
259 | + vfsStream::getCurrentGroup() |
|
260 | + ) |
|
261 | + ); |
|
262 | 262 | $this->assertFalse($abstractContent->isExecutable(-1, |
263 | - vfsStream::getCurrentGroup() |
|
264 | - ) |
|
265 | - ); |
|
263 | + vfsStream::getCurrentGroup() |
|
264 | + ) |
|
265 | + ); |
|
266 | 266 | $this->assertFalse($abstractContent->isExecutable(-1, |
267 | 267 | -1 |
268 | - ) |
|
269 | - ); |
|
268 | + ) |
|
269 | + ); |
|
270 | 270 | } |
271 | 271 | |
272 | 272 | /** |
@@ -279,40 +279,40 @@ discard block |
||
279 | 279 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0020); |
280 | 280 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
281 | 281 | vfsStream::getCurrentGroup() |
282 | - ) |
|
283 | - ); |
|
282 | + ) |
|
283 | + ); |
|
284 | 284 | $this->assertFalse($abstractContent->isReadable(-1, |
285 | 285 | vfsStream::getCurrentGroup() |
286 | - ) |
|
287 | - ); |
|
286 | + ) |
|
287 | + ); |
|
288 | 288 | $this->assertFalse($abstractContent->isReadable(-1, |
289 | 289 | -1 |
290 | - ) |
|
291 | - ); |
|
290 | + ) |
|
291 | + ); |
|
292 | 292 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
293 | 293 | vfsStream::getCurrentGroup() |
294 | - ) |
|
295 | - ); |
|
294 | + ) |
|
295 | + ); |
|
296 | 296 | $this->assertTrue($abstractContent->isWritable(-1, |
297 | - vfsStream::getCurrentGroup() |
|
297 | + vfsStream::getCurrentGroup() |
|
298 | 298 | ) |
299 | - ); |
|
299 | + ); |
|
300 | 300 | $this->assertFalse($abstractContent->isWritable(-1, |
301 | 301 | -1 |
302 | - ) |
|
303 | - ); |
|
302 | + ) |
|
303 | + ); |
|
304 | 304 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
305 | - vfsStream::getCurrentGroup() |
|
306 | - ) |
|
307 | - ); |
|
305 | + vfsStream::getCurrentGroup() |
|
306 | + ) |
|
307 | + ); |
|
308 | 308 | $this->assertFalse($abstractContent->isExecutable(-1, |
309 | - vfsStream::getCurrentGroup() |
|
310 | - ) |
|
311 | - ); |
|
309 | + vfsStream::getCurrentGroup() |
|
310 | + ) |
|
311 | + ); |
|
312 | 312 | $this->assertFalse($abstractContent->isExecutable(-1, |
313 | 313 | -1 |
314 | - ) |
|
315 | - ); |
|
314 | + ) |
|
315 | + ); |
|
316 | 316 | } |
317 | 317 | |
318 | 318 | /** |
@@ -325,40 +325,40 @@ discard block |
||
325 | 325 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0002); |
326 | 326 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
327 | 327 | vfsStream::getCurrentGroup() |
328 | - ) |
|
329 | - ); |
|
328 | + ) |
|
329 | + ); |
|
330 | 330 | $this->assertFalse($abstractContent->isReadable(-1, |
331 | 331 | vfsStream::getCurrentGroup() |
332 | - ) |
|
333 | - ); |
|
332 | + ) |
|
333 | + ); |
|
334 | 334 | $this->assertFalse($abstractContent->isReadable(-1, |
335 | 335 | -1 |
336 | - ) |
|
337 | - ); |
|
336 | + ) |
|
337 | + ); |
|
338 | 338 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
339 | 339 | vfsStream::getCurrentGroup() |
340 | - ) |
|
341 | - ); |
|
340 | + ) |
|
341 | + ); |
|
342 | 342 | $this->assertFalse($abstractContent->isWritable(-1, |
343 | 343 | vfsStream::getCurrentGroup() |
344 | - ) |
|
345 | - ); |
|
344 | + ) |
|
345 | + ); |
|
346 | 346 | $this->assertTrue($abstractContent->isWritable(-1, |
347 | 347 | -1 |
348 | 348 | ) |
349 | - ); |
|
349 | + ); |
|
350 | 350 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
351 | - vfsStream::getCurrentGroup() |
|
352 | - ) |
|
353 | - ); |
|
351 | + vfsStream::getCurrentGroup() |
|
352 | + ) |
|
353 | + ); |
|
354 | 354 | $this->assertFalse($abstractContent->isExecutable(-1, |
355 | - vfsStream::getCurrentGroup() |
|
356 | - ) |
|
357 | - ); |
|
355 | + vfsStream::getCurrentGroup() |
|
356 | + ) |
|
357 | + ); |
|
358 | 358 | $this->assertFalse($abstractContent->isExecutable(-1, |
359 | 359 | -1 |
360 | - ) |
|
361 | - ); |
|
360 | + ) |
|
361 | + ); |
|
362 | 362 | } |
363 | 363 | |
364 | 364 | /** |
@@ -371,40 +371,40 @@ discard block |
||
371 | 371 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0300); |
372 | 372 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
373 | 373 | vfsStream::getCurrentGroup() |
374 | - ) |
|
375 | - ); |
|
374 | + ) |
|
375 | + ); |
|
376 | 376 | $this->assertFalse($abstractContent->isReadable(-1, |
377 | 377 | vfsStream::getCurrentGroup() |
378 | - ) |
|
379 | - ); |
|
378 | + ) |
|
379 | + ); |
|
380 | 380 | $this->assertFalse($abstractContent->isReadable(-1, |
381 | 381 | -1 |
382 | - ) |
|
383 | - ); |
|
382 | + ) |
|
383 | + ); |
|
384 | 384 | $this->assertTrue($abstractContent->isWritable(vfsStream::getCurrentUser(), |
385 | - vfsStream::getCurrentGroup() |
|
385 | + vfsStream::getCurrentGroup() |
|
386 | 386 | ) |
387 | - ); |
|
387 | + ); |
|
388 | 388 | $this->assertFalse($abstractContent->isWritable(-1, |
389 | 389 | vfsStream::getCurrentGroup() |
390 | - ) |
|
391 | - ); |
|
390 | + ) |
|
391 | + ); |
|
392 | 392 | $this->assertFalse($abstractContent->isWritable(-1, |
393 | 393 | -1 |
394 | - ) |
|
395 | - ); |
|
394 | + ) |
|
395 | + ); |
|
396 | 396 | $this->assertTrue($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
397 | - vfsStream::getCurrentGroup() |
|
397 | + vfsStream::getCurrentGroup() |
|
398 | 398 | ) |
399 | - ); |
|
399 | + ); |
|
400 | 400 | $this->assertFalse($abstractContent->isExecutable(-1, |
401 | - vfsStream::getCurrentGroup() |
|
402 | - ) |
|
403 | - ); |
|
401 | + vfsStream::getCurrentGroup() |
|
402 | + ) |
|
403 | + ); |
|
404 | 404 | $this->assertFalse($abstractContent->isExecutable(-1, |
405 | 405 | -1 |
406 | - ) |
|
407 | - ); |
|
406 | + ) |
|
407 | + ); |
|
408 | 408 | } |
409 | 409 | |
410 | 410 | /** |
@@ -417,40 +417,40 @@ discard block |
||
417 | 417 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0030); |
418 | 418 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
419 | 419 | vfsStream::getCurrentGroup() |
420 | - ) |
|
421 | - ); |
|
420 | + ) |
|
421 | + ); |
|
422 | 422 | $this->assertFalse($abstractContent->isReadable(-1, |
423 | 423 | vfsStream::getCurrentGroup() |
424 | - ) |
|
425 | - ); |
|
424 | + ) |
|
425 | + ); |
|
426 | 426 | $this->assertFalse($abstractContent->isReadable(-1, |
427 | 427 | -1 |
428 | - ) |
|
429 | - ); |
|
428 | + ) |
|
429 | + ); |
|
430 | 430 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
431 | 431 | vfsStream::getCurrentGroup() |
432 | - ) |
|
433 | - ); |
|
432 | + ) |
|
433 | + ); |
|
434 | 434 | $this->assertTrue($abstractContent->isWritable(-1, |
435 | - vfsStream::getCurrentGroup() |
|
435 | + vfsStream::getCurrentGroup() |
|
436 | 436 | ) |
437 | - ); |
|
437 | + ); |
|
438 | 438 | $this->assertFalse($abstractContent->isWritable(-1, |
439 | 439 | -1 |
440 | - ) |
|
441 | - ); |
|
440 | + ) |
|
441 | + ); |
|
442 | 442 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
443 | - vfsStream::getCurrentGroup() |
|
444 | - ) |
|
445 | - ); |
|
443 | + vfsStream::getCurrentGroup() |
|
444 | + ) |
|
445 | + ); |
|
446 | 446 | $this->assertTrue($abstractContent->isExecutable(-1, |
447 | - vfsStream::getCurrentGroup() |
|
447 | + vfsStream::getCurrentGroup() |
|
448 | 448 | ) |
449 | - ); |
|
449 | + ); |
|
450 | 450 | $this->assertFalse($abstractContent->isExecutable(-1, |
451 | 451 | -1 |
452 | - ) |
|
453 | - ); |
|
452 | + ) |
|
453 | + ); |
|
454 | 454 | } |
455 | 455 | |
456 | 456 | /** |
@@ -463,40 +463,40 @@ discard block |
||
463 | 463 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0003); |
464 | 464 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
465 | 465 | vfsStream::getCurrentGroup() |
466 | - ) |
|
467 | - ); |
|
466 | + ) |
|
467 | + ); |
|
468 | 468 | $this->assertFalse($abstractContent->isReadable(-1, |
469 | 469 | vfsStream::getCurrentGroup() |
470 | - ) |
|
471 | - ); |
|
470 | + ) |
|
471 | + ); |
|
472 | 472 | $this->assertFalse($abstractContent->isReadable(-1, |
473 | 473 | -1 |
474 | - ) |
|
475 | - ); |
|
474 | + ) |
|
475 | + ); |
|
476 | 476 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
477 | 477 | vfsStream::getCurrentGroup() |
478 | - ) |
|
479 | - ); |
|
478 | + ) |
|
479 | + ); |
|
480 | 480 | $this->assertFalse($abstractContent->isWritable(-1, |
481 | 481 | vfsStream::getCurrentGroup() |
482 | - ) |
|
483 | - ); |
|
482 | + ) |
|
483 | + ); |
|
484 | 484 | $this->assertTrue($abstractContent->isWritable(-1, |
485 | 485 | -1 |
486 | 486 | ) |
487 | - ); |
|
487 | + ); |
|
488 | 488 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
489 | - vfsStream::getCurrentGroup() |
|
490 | - ) |
|
491 | - ); |
|
489 | + vfsStream::getCurrentGroup() |
|
490 | + ) |
|
491 | + ); |
|
492 | 492 | $this->assertFalse($abstractContent->isExecutable(-1, |
493 | - vfsStream::getCurrentGroup() |
|
494 | - ) |
|
495 | - ); |
|
493 | + vfsStream::getCurrentGroup() |
|
494 | + ) |
|
495 | + ); |
|
496 | 496 | $this->assertTrue($abstractContent->isExecutable(-1, |
497 | 497 | -1 |
498 | 498 | ) |
499 | - ); |
|
499 | + ); |
|
500 | 500 | } |
501 | 501 | |
502 | 502 | /** |
@@ -508,41 +508,41 @@ discard block |
||
508 | 508 | { |
509 | 509 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0400); |
510 | 510 | $this->assertTrue($abstractContent->isReadable(vfsStream::getCurrentUser(), |
511 | - vfsStream::getCurrentGroup() |
|
511 | + vfsStream::getCurrentGroup() |
|
512 | 512 | ) |
513 | - ); |
|
513 | + ); |
|
514 | 514 | $this->assertFalse($abstractContent->isReadable(-1, |
515 | 515 | vfsStream::getCurrentGroup() |
516 | - ) |
|
517 | - ); |
|
516 | + ) |
|
517 | + ); |
|
518 | 518 | $this->assertFalse($abstractContent->isReadable(-1, |
519 | 519 | -1 |
520 | - ) |
|
521 | - ); |
|
520 | + ) |
|
521 | + ); |
|
522 | 522 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
523 | 523 | vfsStream::getCurrentGroup() |
524 | - ) |
|
525 | - ); |
|
524 | + ) |
|
525 | + ); |
|
526 | 526 | $this->assertFalse($abstractContent->isWritable(-1, |
527 | 527 | vfsStream::getCurrentGroup() |
528 | - ) |
|
529 | - ); |
|
528 | + ) |
|
529 | + ); |
|
530 | 530 | $this->assertFalse($abstractContent->isWritable(-1, |
531 | 531 | -1 |
532 | - ) |
|
533 | - ); |
|
532 | + ) |
|
533 | + ); |
|
534 | 534 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
535 | - vfsStream::getCurrentGroup() |
|
536 | - ) |
|
537 | - ); |
|
535 | + vfsStream::getCurrentGroup() |
|
536 | + ) |
|
537 | + ); |
|
538 | 538 | $this->assertFalse($abstractContent->isExecutable(-1, |
539 | - vfsStream::getCurrentGroup() |
|
540 | - ) |
|
541 | - ); |
|
539 | + vfsStream::getCurrentGroup() |
|
540 | + ) |
|
541 | + ); |
|
542 | 542 | $this->assertFalse($abstractContent->isExecutable(-1, |
543 | 543 | -1 |
544 | - ) |
|
545 | - ); |
|
544 | + ) |
|
545 | + ); |
|
546 | 546 | } |
547 | 547 | |
548 | 548 | /** |
@@ -555,40 +555,40 @@ discard block |
||
555 | 555 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0040); |
556 | 556 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
557 | 557 | vfsStream::getCurrentGroup() |
558 | - ) |
|
559 | - ); |
|
558 | + ) |
|
559 | + ); |
|
560 | 560 | $this->assertTrue($abstractContent->isReadable(-1, |
561 | 561 | vfsStream::getCurrentGroup() |
562 | - ) |
|
563 | - ); |
|
562 | + ) |
|
563 | + ); |
|
564 | 564 | $this->assertFalse($abstractContent->isReadable(-1, |
565 | 565 | -1 |
566 | - ) |
|
567 | - ); |
|
566 | + ) |
|
567 | + ); |
|
568 | 568 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
569 | 569 | vfsStream::getCurrentGroup() |
570 | - ) |
|
571 | - ); |
|
570 | + ) |
|
571 | + ); |
|
572 | 572 | $this->assertFalse($abstractContent->isWritable(-1, |
573 | 573 | vfsStream::getCurrentGroup() |
574 | - ) |
|
575 | - ); |
|
574 | + ) |
|
575 | + ); |
|
576 | 576 | $this->assertFalse($abstractContent->isWritable(-1, |
577 | 577 | -1 |
578 | - ) |
|
579 | - ); |
|
578 | + ) |
|
579 | + ); |
|
580 | 580 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
581 | - vfsStream::getCurrentGroup() |
|
582 | - ) |
|
583 | - ); |
|
581 | + vfsStream::getCurrentGroup() |
|
582 | + ) |
|
583 | + ); |
|
584 | 584 | $this->assertFalse($abstractContent->isExecutable(-1, |
585 | - vfsStream::getCurrentGroup() |
|
586 | - ) |
|
587 | - ); |
|
585 | + vfsStream::getCurrentGroup() |
|
586 | + ) |
|
587 | + ); |
|
588 | 588 | $this->assertFalse($abstractContent->isExecutable(-1, |
589 | 589 | -1 |
590 | - ) |
|
591 | - ); |
|
590 | + ) |
|
591 | + ); |
|
592 | 592 | } |
593 | 593 | |
594 | 594 | /** |
@@ -601,40 +601,40 @@ discard block |
||
601 | 601 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0004); |
602 | 602 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
603 | 603 | vfsStream::getCurrentGroup() |
604 | - ) |
|
605 | - ); |
|
604 | + ) |
|
605 | + ); |
|
606 | 606 | $this->assertFalse($abstractContent->isReadable(-1, |
607 | 607 | vfsStream::getCurrentGroup() |
608 | - ) |
|
609 | - ); |
|
608 | + ) |
|
609 | + ); |
|
610 | 610 | $this->assertTrue($abstractContent->isReadable(-1, |
611 | 611 | -1 |
612 | 612 | ) |
613 | - ); |
|
613 | + ); |
|
614 | 614 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
615 | 615 | vfsStream::getCurrentGroup() |
616 | - ) |
|
617 | - ); |
|
616 | + ) |
|
617 | + ); |
|
618 | 618 | $this->assertFalse($abstractContent->isWritable(-1, |
619 | 619 | vfsStream::getCurrentGroup() |
620 | - ) |
|
621 | - ); |
|
620 | + ) |
|
621 | + ); |
|
622 | 622 | $this->assertFalse($abstractContent->isWritable(-1, |
623 | 623 | -1 |
624 | - ) |
|
625 | - ); |
|
624 | + ) |
|
625 | + ); |
|
626 | 626 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
627 | - vfsStream::getCurrentGroup() |
|
628 | - ) |
|
629 | - ); |
|
627 | + vfsStream::getCurrentGroup() |
|
628 | + ) |
|
629 | + ); |
|
630 | 630 | $this->assertFalse($abstractContent->isExecutable(-1, |
631 | - vfsStream::getCurrentGroup() |
|
632 | - ) |
|
633 | - ); |
|
631 | + vfsStream::getCurrentGroup() |
|
632 | + ) |
|
633 | + ); |
|
634 | 634 | $this->assertFalse($abstractContent->isExecutable(-1, |
635 | 635 | -1 |
636 | - ) |
|
637 | - ); |
|
636 | + ) |
|
637 | + ); |
|
638 | 638 | } |
639 | 639 | |
640 | 640 | /** |
@@ -646,41 +646,41 @@ discard block |
||
646 | 646 | { |
647 | 647 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0500); |
648 | 648 | $this->assertTrue($abstractContent->isReadable(vfsStream::getCurrentUser(), |
649 | - vfsStream::getCurrentGroup() |
|
649 | + vfsStream::getCurrentGroup() |
|
650 | 650 | ) |
651 | - ); |
|
651 | + ); |
|
652 | 652 | $this->assertFalse($abstractContent->isReadable(-1, |
653 | 653 | vfsStream::getCurrentGroup() |
654 | - ) |
|
655 | - ); |
|
654 | + ) |
|
655 | + ); |
|
656 | 656 | $this->assertFalse($abstractContent->isReadable(-1, |
657 | 657 | -1 |
658 | - ) |
|
659 | - ); |
|
658 | + ) |
|
659 | + ); |
|
660 | 660 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
661 | 661 | vfsStream::getCurrentGroup() |
662 | - ) |
|
663 | - ); |
|
662 | + ) |
|
663 | + ); |
|
664 | 664 | $this->assertFalse($abstractContent->isWritable(-1, |
665 | 665 | vfsStream::getCurrentGroup() |
666 | - ) |
|
667 | - ); |
|
666 | + ) |
|
667 | + ); |
|
668 | 668 | $this->assertFalse($abstractContent->isWritable(-1, |
669 | 669 | -1 |
670 | - ) |
|
671 | - ); |
|
670 | + ) |
|
671 | + ); |
|
672 | 672 | $this->assertTrue($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
673 | - vfsStream::getCurrentGroup() |
|
673 | + vfsStream::getCurrentGroup() |
|
674 | 674 | ) |
675 | - ); |
|
675 | + ); |
|
676 | 676 | $this->assertFalse($abstractContent->isExecutable(-1, |
677 | - vfsStream::getCurrentGroup() |
|
678 | - ) |
|
679 | - ); |
|
677 | + vfsStream::getCurrentGroup() |
|
678 | + ) |
|
679 | + ); |
|
680 | 680 | $this->assertFalse($abstractContent->isExecutable(-1, |
681 | 681 | -1 |
682 | - ) |
|
683 | - ); |
|
682 | + ) |
|
683 | + ); |
|
684 | 684 | } |
685 | 685 | |
686 | 686 | /** |
@@ -693,40 +693,40 @@ discard block |
||
693 | 693 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0050); |
694 | 694 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
695 | 695 | vfsStream::getCurrentGroup() |
696 | - ) |
|
697 | - ); |
|
696 | + ) |
|
697 | + ); |
|
698 | 698 | $this->assertTrue($abstractContent->isReadable(-1, |
699 | 699 | vfsStream::getCurrentGroup() |
700 | - ) |
|
701 | - ); |
|
700 | + ) |
|
701 | + ); |
|
702 | 702 | $this->assertFalse($abstractContent->isReadable(-1, |
703 | 703 | -1 |
704 | - ) |
|
705 | - ); |
|
704 | + ) |
|
705 | + ); |
|
706 | 706 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
707 | 707 | vfsStream::getCurrentGroup() |
708 | - ) |
|
709 | - ); |
|
708 | + ) |
|
709 | + ); |
|
710 | 710 | $this->assertFalse($abstractContent->isWritable(-1, |
711 | 711 | vfsStream::getCurrentGroup() |
712 | - ) |
|
713 | - ); |
|
712 | + ) |
|
713 | + ); |
|
714 | 714 | $this->assertFalse($abstractContent->isWritable(-1, |
715 | 715 | -1 |
716 | - ) |
|
717 | - ); |
|
716 | + ) |
|
717 | + ); |
|
718 | 718 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
719 | - vfsStream::getCurrentGroup() |
|
720 | - ) |
|
721 | - ); |
|
719 | + vfsStream::getCurrentGroup() |
|
720 | + ) |
|
721 | + ); |
|
722 | 722 | $this->assertTrue($abstractContent->isExecutable(-1, |
723 | - vfsStream::getCurrentGroup() |
|
723 | + vfsStream::getCurrentGroup() |
|
724 | 724 | ) |
725 | - ); |
|
725 | + ); |
|
726 | 726 | $this->assertFalse($abstractContent->isExecutable(-1, |
727 | 727 | -1 |
728 | - ) |
|
729 | - ); |
|
728 | + ) |
|
729 | + ); |
|
730 | 730 | } |
731 | 731 | |
732 | 732 | /** |
@@ -739,40 +739,40 @@ discard block |
||
739 | 739 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0005); |
740 | 740 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
741 | 741 | vfsStream::getCurrentGroup() |
742 | - ) |
|
743 | - ); |
|
742 | + ) |
|
743 | + ); |
|
744 | 744 | $this->assertFalse($abstractContent->isReadable(-1, |
745 | 745 | vfsStream::getCurrentGroup() |
746 | - ) |
|
747 | - ); |
|
746 | + ) |
|
747 | + ); |
|
748 | 748 | $this->assertTrue($abstractContent->isReadable(-1, |
749 | 749 | -1 |
750 | 750 | ) |
751 | - ); |
|
751 | + ); |
|
752 | 752 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
753 | 753 | vfsStream::getCurrentGroup() |
754 | - ) |
|
755 | - ); |
|
754 | + ) |
|
755 | + ); |
|
756 | 756 | $this->assertFalse($abstractContent->isWritable(-1, |
757 | 757 | vfsStream::getCurrentGroup() |
758 | - ) |
|
759 | - ); |
|
758 | + ) |
|
759 | + ); |
|
760 | 760 | $this->assertFalse($abstractContent->isWritable(-1, |
761 | 761 | -1 |
762 | - ) |
|
763 | - ); |
|
762 | + ) |
|
763 | + ); |
|
764 | 764 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
765 | - vfsStream::getCurrentGroup() |
|
766 | - ) |
|
767 | - ); |
|
765 | + vfsStream::getCurrentGroup() |
|
766 | + ) |
|
767 | + ); |
|
768 | 768 | $this->assertFalse($abstractContent->isExecutable(-1, |
769 | - vfsStream::getCurrentGroup() |
|
770 | - ) |
|
771 | - ); |
|
769 | + vfsStream::getCurrentGroup() |
|
770 | + ) |
|
771 | + ); |
|
772 | 772 | $this->assertTrue($abstractContent->isExecutable(-1, |
773 | 773 | -1 |
774 | 774 | ) |
775 | - ); |
|
775 | + ); |
|
776 | 776 | } |
777 | 777 | |
778 | 778 | /** |
@@ -784,41 +784,41 @@ discard block |
||
784 | 784 | { |
785 | 785 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0600); |
786 | 786 | $this->assertTrue($abstractContent->isReadable(vfsStream::getCurrentUser(), |
787 | - vfsStream::getCurrentGroup() |
|
787 | + vfsStream::getCurrentGroup() |
|
788 | 788 | ) |
789 | - ); |
|
789 | + ); |
|
790 | 790 | $this->assertFalse($abstractContent->isReadable(-1, |
791 | 791 | vfsStream::getCurrentGroup() |
792 | - ) |
|
793 | - ); |
|
792 | + ) |
|
793 | + ); |
|
794 | 794 | $this->assertFalse($abstractContent->isReadable(-1, |
795 | 795 | -1 |
796 | - ) |
|
797 | - ); |
|
796 | + ) |
|
797 | + ); |
|
798 | 798 | $this->assertTrue($abstractContent->isWritable(vfsStream::getCurrentUser(), |
799 | - vfsStream::getCurrentGroup() |
|
799 | + vfsStream::getCurrentGroup() |
|
800 | 800 | ) |
801 | - ); |
|
801 | + ); |
|
802 | 802 | $this->assertFalse($abstractContent->isWritable(-1, |
803 | 803 | vfsStream::getCurrentGroup() |
804 | - ) |
|
805 | - ); |
|
804 | + ) |
|
805 | + ); |
|
806 | 806 | $this->assertFalse($abstractContent->isWritable(-1, |
807 | 807 | -1 |
808 | - ) |
|
809 | - ); |
|
808 | + ) |
|
809 | + ); |
|
810 | 810 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
811 | - vfsStream::getCurrentGroup() |
|
812 | - ) |
|
813 | - ); |
|
811 | + vfsStream::getCurrentGroup() |
|
812 | + ) |
|
813 | + ); |
|
814 | 814 | $this->assertFalse($abstractContent->isExecutable(-1, |
815 | - vfsStream::getCurrentGroup() |
|
816 | - ) |
|
817 | - ); |
|
815 | + vfsStream::getCurrentGroup() |
|
816 | + ) |
|
817 | + ); |
|
818 | 818 | $this->assertFalse($abstractContent->isExecutable(-1, |
819 | 819 | -1 |
820 | - ) |
|
821 | - ); |
|
820 | + ) |
|
821 | + ); |
|
822 | 822 | } |
823 | 823 | |
824 | 824 | /** |
@@ -831,40 +831,40 @@ discard block |
||
831 | 831 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0060); |
832 | 832 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
833 | 833 | vfsStream::getCurrentGroup() |
834 | - ) |
|
835 | - ); |
|
834 | + ) |
|
835 | + ); |
|
836 | 836 | $this->assertTrue($abstractContent->isReadable(-1, |
837 | 837 | vfsStream::getCurrentGroup() |
838 | - ) |
|
839 | - ); |
|
838 | + ) |
|
839 | + ); |
|
840 | 840 | $this->assertFalse($abstractContent->isReadable(-1, |
841 | 841 | -1 |
842 | - ) |
|
843 | - ); |
|
842 | + ) |
|
843 | + ); |
|
844 | 844 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
845 | 845 | vfsStream::getCurrentGroup() |
846 | - ) |
|
847 | - ); |
|
846 | + ) |
|
847 | + ); |
|
848 | 848 | $this->assertTrue($abstractContent->isWritable(-1, |
849 | - vfsStream::getCurrentGroup() |
|
849 | + vfsStream::getCurrentGroup() |
|
850 | 850 | ) |
851 | - ); |
|
851 | + ); |
|
852 | 852 | $this->assertFalse($abstractContent->isWritable(-1, |
853 | 853 | -1 |
854 | - ) |
|
855 | - ); |
|
854 | + ) |
|
855 | + ); |
|
856 | 856 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
857 | - vfsStream::getCurrentGroup() |
|
858 | - ) |
|
859 | - ); |
|
857 | + vfsStream::getCurrentGroup() |
|
858 | + ) |
|
859 | + ); |
|
860 | 860 | $this->assertFalse($abstractContent->isExecutable(-1, |
861 | - vfsStream::getCurrentGroup() |
|
862 | - ) |
|
863 | - ); |
|
861 | + vfsStream::getCurrentGroup() |
|
862 | + ) |
|
863 | + ); |
|
864 | 864 | $this->assertFalse($abstractContent->isExecutable(-1, |
865 | 865 | -1 |
866 | - ) |
|
867 | - ); |
|
866 | + ) |
|
867 | + ); |
|
868 | 868 | } |
869 | 869 | |
870 | 870 | /** |
@@ -877,40 +877,40 @@ discard block |
||
877 | 877 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0006); |
878 | 878 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
879 | 879 | vfsStream::getCurrentGroup() |
880 | - ) |
|
881 | - ); |
|
880 | + ) |
|
881 | + ); |
|
882 | 882 | $this->assertFalse($abstractContent->isReadable(-1, |
883 | 883 | vfsStream::getCurrentGroup() |
884 | - ) |
|
885 | - ); |
|
884 | + ) |
|
885 | + ); |
|
886 | 886 | $this->assertTrue($abstractContent->isReadable(-1, |
887 | 887 | -1 |
888 | 888 | ) |
889 | - ); |
|
889 | + ); |
|
890 | 890 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
891 | 891 | vfsStream::getCurrentGroup() |
892 | - ) |
|
893 | - ); |
|
892 | + ) |
|
893 | + ); |
|
894 | 894 | $this->assertFalse($abstractContent->isWritable(-1, |
895 | 895 | vfsStream::getCurrentGroup() |
896 | - ) |
|
897 | - ); |
|
896 | + ) |
|
897 | + ); |
|
898 | 898 | $this->assertTrue($abstractContent->isWritable(-1, |
899 | 899 | -1 |
900 | 900 | ) |
901 | - ); |
|
901 | + ); |
|
902 | 902 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
903 | - vfsStream::getCurrentGroup() |
|
904 | - ) |
|
905 | - ); |
|
903 | + vfsStream::getCurrentGroup() |
|
904 | + ) |
|
905 | + ); |
|
906 | 906 | $this->assertFalse($abstractContent->isExecutable(-1, |
907 | - vfsStream::getCurrentGroup() |
|
908 | - ) |
|
909 | - ); |
|
907 | + vfsStream::getCurrentGroup() |
|
908 | + ) |
|
909 | + ); |
|
910 | 910 | $this->assertFalse($abstractContent->isExecutable(-1, |
911 | 911 | -1 |
912 | - ) |
|
913 | - ); |
|
912 | + ) |
|
913 | + ); |
|
914 | 914 | } |
915 | 915 | |
916 | 916 | /** |
@@ -922,41 +922,41 @@ discard block |
||
922 | 922 | { |
923 | 923 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0700); |
924 | 924 | $this->assertTrue($abstractContent->isReadable(vfsStream::getCurrentUser(), |
925 | - vfsStream::getCurrentGroup() |
|
925 | + vfsStream::getCurrentGroup() |
|
926 | 926 | ) |
927 | - ); |
|
927 | + ); |
|
928 | 928 | $this->assertFalse($abstractContent->isReadable(-1, |
929 | 929 | vfsStream::getCurrentGroup() |
930 | - ) |
|
931 | - ); |
|
930 | + ) |
|
931 | + ); |
|
932 | 932 | $this->assertFalse($abstractContent->isReadable(-1, |
933 | 933 | -1 |
934 | - ) |
|
935 | - ); |
|
934 | + ) |
|
935 | + ); |
|
936 | 936 | $this->assertTrue($abstractContent->isWritable(vfsStream::getCurrentUser(), |
937 | - vfsStream::getCurrentGroup() |
|
937 | + vfsStream::getCurrentGroup() |
|
938 | 938 | ) |
939 | - ); |
|
939 | + ); |
|
940 | 940 | $this->assertFalse($abstractContent->isWritable(-1, |
941 | 941 | vfsStream::getCurrentGroup() |
942 | - ) |
|
943 | - ); |
|
942 | + ) |
|
943 | + ); |
|
944 | 944 | $this->assertFalse($abstractContent->isWritable(-1, |
945 | 945 | -1 |
946 | - ) |
|
947 | - ); |
|
946 | + ) |
|
947 | + ); |
|
948 | 948 | $this->assertTrue($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
949 | - vfsStream::getCurrentGroup() |
|
949 | + vfsStream::getCurrentGroup() |
|
950 | 950 | ) |
951 | - ); |
|
951 | + ); |
|
952 | 952 | $this->assertFalse($abstractContent->isExecutable(-1, |
953 | - vfsStream::getCurrentGroup() |
|
954 | - ) |
|
955 | - ); |
|
953 | + vfsStream::getCurrentGroup() |
|
954 | + ) |
|
955 | + ); |
|
956 | 956 | $this->assertFalse($abstractContent->isExecutable(-1, |
957 | 957 | -1 |
958 | - ) |
|
959 | - ); |
|
958 | + ) |
|
959 | + ); |
|
960 | 960 | } |
961 | 961 | |
962 | 962 | /** |
@@ -969,40 +969,40 @@ discard block |
||
969 | 969 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0070); |
970 | 970 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
971 | 971 | vfsStream::getCurrentGroup() |
972 | - ) |
|
973 | - ); |
|
972 | + ) |
|
973 | + ); |
|
974 | 974 | $this->assertTrue($abstractContent->isReadable(-1, |
975 | 975 | vfsStream::getCurrentGroup() |
976 | - ) |
|
977 | - ); |
|
976 | + ) |
|
977 | + ); |
|
978 | 978 | $this->assertFalse($abstractContent->isReadable(-1, |
979 | 979 | -1 |
980 | - ) |
|
981 | - ); |
|
980 | + ) |
|
981 | + ); |
|
982 | 982 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
983 | 983 | vfsStream::getCurrentGroup() |
984 | - ) |
|
985 | - ); |
|
984 | + ) |
|
985 | + ); |
|
986 | 986 | $this->assertTrue($abstractContent->isWritable(-1, |
987 | - vfsStream::getCurrentGroup() |
|
987 | + vfsStream::getCurrentGroup() |
|
988 | 988 | ) |
989 | - ); |
|
989 | + ); |
|
990 | 990 | $this->assertFalse($abstractContent->isWritable(-1, |
991 | 991 | -1 |
992 | - ) |
|
993 | - ); |
|
992 | + ) |
|
993 | + ); |
|
994 | 994 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
995 | - vfsStream::getCurrentGroup() |
|
996 | - ) |
|
997 | - ); |
|
995 | + vfsStream::getCurrentGroup() |
|
996 | + ) |
|
997 | + ); |
|
998 | 998 | $this->assertTrue($abstractContent->isExecutable(-1, |
999 | - vfsStream::getCurrentGroup() |
|
999 | + vfsStream::getCurrentGroup() |
|
1000 | 1000 | ) |
1001 | - ); |
|
1001 | + ); |
|
1002 | 1002 | $this->assertFalse($abstractContent->isExecutable(-1, |
1003 | 1003 | -1 |
1004 | - ) |
|
1005 | - ); |
|
1004 | + ) |
|
1005 | + ); |
|
1006 | 1006 | } |
1007 | 1007 | |
1008 | 1008 | /** |
@@ -1015,39 +1015,39 @@ discard block |
||
1015 | 1015 | $abstractContent = new TestvfsStreamAbstractContent('foo', 0007); |
1016 | 1016 | $this->assertFalse($abstractContent->isReadable(vfsStream::getCurrentUser(), |
1017 | 1017 | vfsStream::getCurrentGroup() |
1018 | - ) |
|
1019 | - ); |
|
1018 | + ) |
|
1019 | + ); |
|
1020 | 1020 | $this->assertFalse($abstractContent->isReadable(-1, |
1021 | 1021 | vfsStream::getCurrentGroup() |
1022 | - ) |
|
1023 | - ); |
|
1022 | + ) |
|
1023 | + ); |
|
1024 | 1024 | $this->assertTrue($abstractContent->isReadable(-1, |
1025 | 1025 | -1 |
1026 | 1026 | ) |
1027 | - ); |
|
1027 | + ); |
|
1028 | 1028 | $this->assertFalse($abstractContent->isWritable(vfsStream::getCurrentUser(), |
1029 | 1029 | vfsStream::getCurrentGroup() |
1030 | - ) |
|
1031 | - ); |
|
1030 | + ) |
|
1031 | + ); |
|
1032 | 1032 | $this->assertFalse($abstractContent->isWritable(-1, |
1033 | 1033 | vfsStream::getCurrentGroup() |
1034 | - ) |
|
1035 | - ); |
|
1034 | + ) |
|
1035 | + ); |
|
1036 | 1036 | $this->assertTrue($abstractContent->isWritable(-1, |
1037 | 1037 | -1 |
1038 | 1038 | ) |
1039 | - ); |
|
1039 | + ); |
|
1040 | 1040 | $this->assertFalse($abstractContent->isExecutable(vfsStream::getCurrentUser(), |
1041 | - vfsStream::getCurrentGroup() |
|
1042 | - ) |
|
1043 | - ); |
|
1041 | + vfsStream::getCurrentGroup() |
|
1042 | + ) |
|
1043 | + ); |
|
1044 | 1044 | $this->assertFalse($abstractContent->isExecutable(-1, |
1045 | - vfsStream::getCurrentGroup() |
|
1046 | - ) |
|
1047 | - ); |
|
1045 | + vfsStream::getCurrentGroup() |
|
1046 | + ) |
|
1047 | + ); |
|
1048 | 1048 | $this->assertTrue($abstractContent->isExecutable(-1, |
1049 | 1049 | -1 |
1050 | 1050 | ) |
1051 | - ); |
|
1051 | + ); |
|
1052 | 1052 | } |
1053 | 1053 | } |