Skip to content

Commit

Permalink
Fix: Rename namespace after move to @ergebnis
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 5, 2019
1 parent c8cd1a6 commit 4d4a8c3
Show file tree
Hide file tree
Showing 19 changed files with 59 additions and 47 deletions.
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

For a full diff see [`0.4.0...master`][0.4.0...master].
For a full diff see [`0.5.0...master`][0.5.0...master].

## [`0.5.0`][0.5.0]

For a full diff see [`0.4.0...0.5.0`][0.4.0...0.5.0].

### Changed

* Renamed vendor namespace `Localheinz` to `Ergebnis` after move to [@ergebnis] ([#78]), by [@localheinz]

### Fixed

* Dropped support for PHP 7.1 ([#77]), by [@localheinz]

[0.4.0...master]: https://github.com/ergebnis/classy/compare/0.4.0...master
[0.5.0]: https://github.com/localheinz/ergebnis/classy/releases/tag/0.5.0

[0.4.0...0.5.0]: https://github.com/ergebnis/classy/compare/0.4.0...0.5.0
[0.5.0...master]: https://github.com/ergebnis/classy/compare/0.5.0...master

[#77]: https://github.com/ergebnis/classy/pull/77
[#88]: https://github.com/ergebnis/classy/pull/88

[@localheinz]: https://github.com/localheinz
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
},
"autoload": {
"psr-4": {
"Localheinz\\Classy\\": "src/"
"Ergebnis\\Classy\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Localheinz\\Classy\\Test\\": "test/"
"Ergebnis\\Classy\\Test\\": "test/"
}
},
"support": {
Expand Down
2 changes: 1 addition & 1 deletion src/Construct.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy;
namespace Ergebnis\Classy;

final class Construct
{
Expand Down
2 changes: 1 addition & 1 deletion src/Constructs.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy;
namespace Ergebnis\Classy;

final class Constructs
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/DirectoryDoesNotExist.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Exception;
namespace Ergebnis\Classy\Exception;

final class DirectoryDoesNotExist extends \InvalidArgumentException implements ExceptionInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Exception;
namespace Ergebnis\Classy\Exception;

interface ExceptionInterface extends \Throwable
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/MultipleDefinitionsFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Exception;
namespace Ergebnis\Classy\Exception;

use Localheinz\Classy\Construct;
use Ergebnis\Classy\Construct;

final class MultipleDefinitionsFound extends \RuntimeException implements ExceptionInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ParseError.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Exception;
namespace Ergebnis\Classy\Exception;

final class ParseError extends \ParseError implements ExceptionInterface
{
Expand Down
6 changes: 3 additions & 3 deletions test/AutoReview/SrcCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\AutoReview;
namespace Ergebnis\Classy\Test\AutoReview;

use Localheinz\Test\Util\Helper;
use PHPUnit\Framework;
Expand All @@ -29,8 +29,8 @@ public function testSrcClassesHaveTests(): void
{
$this->assertClassesHaveTests(
__DIR__ . '/../../src',
'Localheinz\\Classy\\',
'Localheinz\\Classy\\Test\\Unit\\'
'Ergebnis\\Classy\\',
'Ergebnis\\Classy\\Test\\Unit\\'
);
}
}
4 changes: 2 additions & 2 deletions test/Bench/ClassyBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\Bench;
namespace Ergebnis\Classy\Test\Bench;

use Localheinz\Classy\Constructs;
use Ergebnis\Classy\Constructs;
use Zend\File;

final class ClassyBench
Expand Down
2 changes: 1 addition & 1 deletion test/Fixture/Traversal/Foo.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Localheinz\Classy\Test\Fixture\Traversal;
namespace Ergebnis\Classy\Test\Fixture\Traversal;

final class Foo
{
Expand Down
2 changes: 1 addition & 1 deletion test/Fixture/Traversal/Foo/Bar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Localheinz\Classy\Test\Fixture\Traversal\Foo;
namespace Ergebnis\Classy\Test\Fixture\Traversal\Foo;

interface Bar
{
Expand Down
2 changes: 1 addition & 1 deletion test/Fixture/Traversal/Foo/Baz.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Localheinz\Classy\Test\Fixture\Traversal\Foo;
namespace Ergebnis\Classy\Test\Fixture\Traversal\Foo;

trait Baz
{
Expand Down
6 changes: 3 additions & 3 deletions test/Unit/ConstructTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\Unit;
namespace Ergebnis\Classy\Test\Unit;

use Localheinz\Classy\Construct;
use Ergebnis\Classy\Construct;
use Localheinz\Test\Util\Helper;
use PHPUnit\Framework;

/**
* @internal
*
* @covers \Localheinz\Classy\Construct
* @covers \Ergebnis\Classy\Construct
*/
final class ConstructTest extends Framework\TestCase
{
Expand Down
20 changes: 10 additions & 10 deletions test/Unit/ConstructsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\Unit;
namespace Ergebnis\Classy\Test\Unit;

use Localheinz\Classy\Construct;
use Localheinz\Classy\Constructs;
use Localheinz\Classy\Exception;
use Localheinz\Classy\Test\Fixture;
use Ergebnis\Classy\Construct;
use Ergebnis\Classy\Constructs;
use Ergebnis\Classy\Exception;
use Ergebnis\Classy\Test\Fixture;
use PHPUnit\Framework;

/**
* @internal
*
* @covers \Localheinz\Classy\Constructs
* @covers \Ergebnis\Classy\Constructs
*
* @uses \Localheinz\Classy\Construct
* @uses \Localheinz\Classy\Exception\DirectoryDoesNotExist
* @uses \Localheinz\Classy\Exception\MultipleDefinitionsFound
* @uses \Localheinz\Classy\Exception\ParseError
* @uses \Ergebnis\Classy\Construct
* @uses \Ergebnis\Classy\Exception\DirectoryDoesNotExist
* @uses \Ergebnis\Classy\Exception\MultipleDefinitionsFound
* @uses \Ergebnis\Classy\Exception\ParseError
*/
final class ConstructsTest extends Framework\TestCase
{
Expand Down
8 changes: 4 additions & 4 deletions test/Unit/Exception/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\Unit\Exception;
namespace Ergebnis\Classy\Test\Unit\Exception;

use Localheinz\Classy\Exception\ExceptionInterface;
use Ergebnis\Classy\Exception\ExceptionInterface;
use Localheinz\Test\Util\Helper;
use PHPUnit\Framework;

Expand All @@ -35,8 +35,8 @@ final protected function className(): string
'/Test$/',
'',
\str_replace(
'Localheinz\\Classy\\Test\\Unit\\',
'Localheinz\\Classy\\',
'Ergebnis\\Classy\\Test\\Unit\\',
'Ergebnis\\Classy\\',
static::class
)
);
Expand Down
6 changes: 3 additions & 3 deletions test/Unit/Exception/DirectoryDoesNotExistTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\Unit\Exception;
namespace Ergebnis\Classy\Test\Unit\Exception;

use Localheinz\Classy\Exception\DirectoryDoesNotExist;
use Ergebnis\Classy\Exception\DirectoryDoesNotExist;

/**
* @internal
*
* @covers \Localheinz\Classy\Exception\DirectoryDoesNotExist
* @covers \Ergebnis\Classy\Exception\DirectoryDoesNotExist
*/
final class DirectoryDoesNotExistTest extends AbstractTestCase
{
Expand Down
10 changes: 5 additions & 5 deletions test/Unit/Exception/MultipleDefinitionsFoundTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\Unit\Exception;
namespace Ergebnis\Classy\Test\Unit\Exception;

use Localheinz\Classy\Construct;
use Localheinz\Classy\Exception\MultipleDefinitionsFound;
use Ergebnis\Classy\Construct;
use Ergebnis\Classy\Exception\MultipleDefinitionsFound;

/**
* @internal
*
* @covers \Localheinz\Classy\Exception\MultipleDefinitionsFound
* @covers \Ergebnis\Classy\Exception\MultipleDefinitionsFound
*
* @uses \Localheinz\Classy\Construct
* @uses \Ergebnis\Classy\Construct
*/
final class MultipleDefinitionsFoundTest extends AbstractTestCase
{
Expand Down
6 changes: 3 additions & 3 deletions test/Unit/Exception/ParseErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
* @see https://github.com/ergebnis/classy
*/

namespace Localheinz\Classy\Test\Unit\Exception;
namespace Ergebnis\Classy\Test\Unit\Exception;

use Localheinz\Classy\Exception\ParseError;
use Ergebnis\Classy\Exception\ParseError;

/**
* @internal
*
* @covers \Localheinz\Classy\Exception\ParseError
* @covers \Ergebnis\Classy\Exception\ParseError
*/
final class ParseErrorTest extends AbstractTestCase
{
Expand Down

0 comments on commit 4d4a8c3

Please # to comment.