Skip to content
Permalink
Browse files

Drop org\ from namespace

  • Loading branch information
bizurkur committed Feb 16, 2020
1 parent b563caf commit 53a8d9b55d5dd8c549ac831fb50447af484b38c5
Showing with 199 additions and 155 deletions.
  1. +4 −3 CHANGELOG.md
  2. +3 −3 examples/Example.php
  3. +3 −3 examples/ExampleTestCaseOldWay.php
  4. +4 −4 examples/ExampleTestCaseWithVfsStream.php
  5. +3 −3 examples/FailureExample.php
  6. +4 −4 examples/FailureExampleTestCase.php
  7. +3 −3 examples/FileModeExampleTestCaseOldWay.php
  8. +3 −3 examples/FilePermissionsExample.php
  9. +4 −4 examples/FilePermissionsExampleTestCase.php
  10. +3 −3 examples/FilemodeExample.php
  11. +4 −4 examples/FilemodeExampleTestCaseWithVfsStream.php
  12. +2 −2 phpdoc.dist.xml
  13. +3 −1 src/main/php/org/bovigo/vfs/DotDirectory.php
  14. +3 −1 src/main/php/org/bovigo/vfs/Quota.php
  15. +3 −1 src/main/php/org/bovigo/vfs/content/FileContent.php
  16. +3 −1 src/main/php/org/bovigo/vfs/content/LargeFileContent.php
  17. +3 −1 src/main/php/org/bovigo/vfs/content/SeekableFileContent.php
  18. +3 −1 src/main/php/org/bovigo/vfs/content/StringBasedFileContent.php
  19. +6 −4 src/main/php/org/bovigo/vfs/vfsStream.php
  20. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
  21. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamBlock.php
  22. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamContainer.php
  23. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamContainerIterator.php
  24. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamContent.php
  25. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamDirectory.php
  26. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamException.php
  27. +10 −5 src/main/php/org/bovigo/vfs/vfsStreamFile.php
  28. +3 −1 src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
  29. +7 −5 src/main/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitor.php
  30. +6 −4 src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php
  31. +6 −4 src/main/php/org/bovigo/vfs/visitor/vfsStreamStructureVisitor.php
  32. +7 −5 src/main/php/org/bovigo/vfs/visitor/vfsStreamVisitor.php
  33. +1 −1 src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php
  34. +1 −1 src/test/php/org/bovigo/vfs/FilenameTestCase.php
  35. +1 −1 src/test/php/org/bovigo/vfs/Issue104TestCase.php
  36. +1 −1 src/test/php/org/bovigo/vfs/PermissionsTestCase.php
  37. +2 −2 src/test/php/org/bovigo/vfs/QuotaTestCase.php
  38. +1 −1 src/test/php/org/bovigo/vfs/UnlinkTestCase.php
  39. +2 −2 src/test/php/org/bovigo/vfs/content/LargeFileContentTestCase.php
  40. +2 −2 src/test/php/org/bovigo/vfs/content/StringBasedFileContentTestCase.php
  41. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php
  42. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamBlockTestCase.php
  43. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamContainerIteratorTestCase.php
  44. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamDirectoryIssue134TestCase.php
  45. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamDirectoryIssue18TestCase.php
  46. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php
  47. +1 −1 src/test/php/org/bovigo/vfs/vfsStreamExLockTestCase.php
  48. +3 −3 src/test/php/org/bovigo/vfs/vfsStreamFileTestCase.php
  49. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamGlobTestCase.php
  50. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamResolveIncludePathTestCase.php
  51. +4 −4 src/test/php/org/bovigo/vfs/vfsStreamTestCase.php
  52. +1 −1 src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php
  53. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php
  54. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperBaseTestCase.php
  55. +1 −1 src/test/php/org/bovigo/vfs/vfsStreamWrapperDirSeparatorTestCase.php
  56. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php
  57. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php
  58. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTimesTestCase.php
  59. +1 −1 src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php
  60. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperLargeFileTestCase.php
  61. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperQuotaTestCase.php
  62. +1 −1 src/test/php/org/bovigo/vfs/vfsStreamWrapperSetOptionTestCase.php
  63. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperStreamSelectTestCase.php
  64. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php
  65. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperUnregisterTestCase.php
  66. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamWrapperWithoutRootTestCase.php
  67. +2 −2 src/test/php/org/bovigo/vfs/vfsStreamZipTestCase.php
  68. +6 −6 src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php
  69. +3 −3 src/test/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitorTestCase.php
  70. +3 −3 src/test/php/org/bovigo/vfs/visitor/vfsStreamStructureVisitorTestCase.php
@@ -5,10 +5,11 @@

### BC breaks

* Namespace changed from `org\bovigo\vfs` to `bovigo\vfs`
* raised minimum required PHP version to 7.2.0
* all methods of `org\bovigo\vfs\visitor\vfsStreamVisitor` are now declared with `self` as return type
* `vfsStreamWrapper::setRoot()` and `vsfStreamWrapper::getRoot()` method signatures now require and return `org\bovigo\vfs\vfsStreamDirectory` vice `org\bovigo\vfs\vfsStreamContainer`.
* `vfsStream::newFile()`, `vfsStream::newBlock()`, `org\bovigo\vfs\vfsStreamFile`, and `org\bovigo\vfs\vfsStreamBlock` will throw an exception if the filename contains a forward slash (`/`).
* all methods of `bovigo\vfs\visitor\vfsStreamVisitor` are now declared with `self` as return type
* `vfsStreamWrapper::setRoot()` and `vsfStreamWrapper::getRoot()` method signatures now require and return `bovigo\vfs\vfsStreamDirectory` vice `bovigo\vfs\vfsStreamContainer`.
* `vfsStream::newFile()`, `vfsStream::newBlock()`, `bovigo\vfs\vfsStreamFile`, and `bovigo\vfs\vfsStreamBlock` will throw an exception if the filename contains a forward slash (`/`).

1.6.8 (2019-10-30)
------------------
@@ -5,9 +5,9 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
namespace bovigo\vfs\example;
/**
* Example class.
*/
@@ -51,4 +51,4 @@ public function setDirectory($directory)

// more source code here...
}
?>
?>
@@ -5,9 +5,9 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
namespace bovigo\vfs\example;
require_once 'Example.php';
/**
* Test case for class Example.
@@ -45,4 +45,4 @@ public function directoryIsCreated()
$this->assertTrue(file_exists(__DIR__ . '/id'));
}
}
?>
?>
@@ -5,10 +5,10 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
use org\bovigo\vfs\vfsStream;
namespace bovigo\vfs\example;
use bovigo\vfs\vfsStream;
require_once 'Example.php';
/**
* Test case for class Example.
@@ -44,4 +44,4 @@ public function directoryIsCreated()
$this->assertTrue($this->root->hasChild('id'));
}
}
?>
?>
@@ -5,9 +5,9 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
namespace bovigo\vfs\example;
/**
* Example class to demonstrate testing of failure behaviour with vfsStream.
*/
@@ -47,4 +47,4 @@ public function writeData($data)

// more source code here...
}
?>
?>
@@ -5,10 +5,10 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
use org\bovigo\vfs\vfsStream;
namespace bovigo\vfs\example;
use bovigo\vfs\vfsStream;
require_once 'FailureExample.php';
/**
* Test case for class FailureExample.
@@ -55,4 +55,4 @@ public function returnsErrorMessageIfWritingToFileFails()
$this->assertSame('notoverwritten', $this->root->getChild('test.txt')->getContent());
}
}
?>
?>
@@ -5,9 +5,9 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
namespace bovigo\vfs\example;
require_once 'FilemodeExample.php';
/**
* Test case for class FilemodeExample.
@@ -64,4 +64,4 @@ public function testDirectoryHasCorrectDifferentFilePermissions()
}
}
}
?>
?>
@@ -5,9 +5,9 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
namespace bovigo\vfs\example;
/**
* Example showing correct file permission support introduced with 0.7.0.
*/
@@ -26,4 +26,4 @@ public function writeConfig($config, $configFile)

// more methods here
}
?>
?>
@@ -5,10 +5,10 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
use org\bovigo\vfs\vfsStream;
namespace bovigo\vfs\example;
use bovigo\vfs\vfsStream;
require_once 'FilePermissionsExample.php';
/**
* Test for FilePermissionsExample.
@@ -41,4 +41,4 @@ public function directoryNotWritable()
);
}
}
?>
?>
@@ -5,9 +5,9 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
namespace bovigo\vfs\example;
/**
* Example class.
*/
@@ -59,4 +59,4 @@ public function setDirectory($directory)

// more source code here...
}
?>
?>
@@ -5,10 +5,10 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package org\bovigo\vfs
* @package bovigo\vfs
*/
namespace org\bovigo\vfs\example;
use org\bovigo\vfs\vfsStream;
namespace bovigo\vfs\example;
use bovigo\vfs\vfsStream;
require_once 'FilemodeExample.php';
/**
* Test case for class FilemodeExample.
@@ -50,4 +50,4 @@ public function testDirectoryIsCreatedWithGivenPermissions()
$this->assertEquals(0755, $this->root->getChild('id')->getPermissions());
}
}
?>
?>
@@ -3,12 +3,12 @@
<title>vfsStream API Doc</title>
<parser>
<target>docs/api</target>
<default-package-name>org\bovigo\vfs</default-package-name>
<default-package-name>bovigo\vfs</default-package-name>
</parser>
<transformer>
<target>docs/api</target>
</transformer>
<files>
<directory>src/main/php</directory>
</files>
</phpdoc>
</phpdoc>
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs;
namespace bovigo\vfs;

use ArrayIterator;
use Iterator;
@@ -35,3 +35,5 @@ public function isDot(): bool
return true;
}
}

class_alias('bovigo\vfs\DotDirectory', 'org\bovigo\vfs\DotDirectory');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs;
namespace bovigo\vfs;

/**
* Represents a quota for disk space.
@@ -80,3 +80,5 @@ public function spaceLeft(int $usedSpace): int
return $spaceLeft;
}
}

class_alias('bovigo\vfs\Quota', 'org\bovigo\vfs\Quota');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs\content;
namespace bovigo\vfs\content;

/**
* Interface for actual file contents.
@@ -73,3 +73,5 @@ public function bytesRead(): int;
*/
public function readUntilEnd(): string;
}

class_alias('bovigo\vfs\content\FileContent', 'org\bovigo\vfs\content\FileContent');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs\content;
namespace bovigo\vfs\content;

use function array_filter;
use function array_keys;
@@ -147,3 +147,5 @@ static function ($pos) use ($size) {
return true;
}
}

class_alias('bovigo\vfs\content\LargeFileContent', 'org\bovigo\vfs\content\LargeFileContent');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs\content;
namespace bovigo\vfs\content;

use const SEEK_CUR;
use const SEEK_END;
@@ -129,3 +129,5 @@ public function readUntilEnd(): string
return $data === false ? '' : $data;
}
}

class_alias('bovigo\vfs\content\SeekableFileContent', 'org\bovigo\vfs\content\SeekableFileContent');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs\content;
namespace bovigo\vfs\content;

use function str_repeat;
use function strlen;
@@ -91,3 +91,5 @@ public function truncate(int $size): bool
return true;
}
}

class_alias('bovigo\vfs\content\StringBasedFileContent', 'org\bovigo\vfs\content\StringBasedFileContent');
@@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs;
namespace bovigo\vfs;

use bovigo\vfs\content\FileContent;
use bovigo\vfs\content\LargeFileContent;
use bovigo\vfs\visitor\vfsStreamVisitor;
use DirectoryIterator;
use InvalidArgumentException;
use org\bovigo\vfs\content\FileContent;
use org\bovigo\vfs\content\LargeFileContent;
use org\bovigo\vfs\visitor\vfsStreamVisitor;
use function array_map;
use function explode;
use function file_get_contents;
@@ -506,3 +506,5 @@ public static function enableDotfiles(): void
self::$dotFiles = true;
}
}

class_alias('bovigo\vfs\vfsStream', 'org\bovigo\vfs\vfsStream');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs;
namespace bovigo\vfs;

use function clearstatcache;
use function strlen;
@@ -402,3 +402,5 @@ public function url(): string
return vfsStream::url($this->path());
}
}

class_alias('bovigo\vfs\vfsStreamAbstractContent', 'org\bovigo\vfs\vfsStreamAbstractContent');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs;
namespace bovigo\vfs;

/**
* Block container.
@@ -33,3 +33,5 @@ public function __construct(string $name, ?int $permissions = null)
$this->type = vfsStreamContent::TYPE_BLOCK;
}
}

class_alias('bovigo\vfs\vfsStreamBlock', 'org\bovigo\vfs\vfsStreamBlock');
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace org\bovigo\vfs;
namespace bovigo\vfs;

use IteratorAggregate;

@@ -52,3 +52,5 @@ public function hasChildren(): bool;
*/
public function getChildren(): array;
}

class_alias('bovigo\vfs\vfsStreamContainer', 'org\bovigo\vfs\vfsStreamContainer');

0 comments on commit 53a8d9b

Please sign in to comment.
You can’t perform that action at this time.