From 22d39cb44fb103c69b10712eb25e73c24f27e3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 10 Dec 2019 21:32:16 +0100 Subject: [PATCH] Fix: Rename namespace after move to @ergebnis --- .php_cs | 4 +- CHANGELOG.md | 87 ++++++++++++++----- README.md | 18 ++-- composer.json | 15 ++-- composer.lock | 2 +- phpstan.neon | 2 +- src/AbstractDefinition.php | 4 +- src/Definition.php | 4 +- src/Definitions.php | 4 +- src/Exception/InvalidDefinition.php | 4 +- src/Exception/InvalidDirectory.php | 4 +- src/FakerAwareDefinition.php | 4 +- test/AutoReview/SrcCodeTest.php | 8 +- .../Definition/Acceptable/UserDefinition.php | 8 +- .../UserDefinition.php | 6 +- .../UserDefinition.php | 8 +- .../Definition/FakerAware/GroupDefinition.php | 8 +- .../Definition/FakerAware/UserDefinition.php | 8 +- .../Definition/IsAbstract/UserDefinition.php | 8 +- .../PrivateConstructor/UserDefinition.php | 8 +- .../UserDefinition.php | 8 +- test/Fixture/Entity/Group.php | 4 +- test/Fixture/Entity/User.php | 4 +- test/Unit/AbstractDefinitionTest.php | 12 +-- test/Unit/DefinitionsTest.php | 20 ++--- test/Unit/Exception/InvalidDefinitionTest.php | 8 +- test/Unit/Exception/InvalidDirectoryTest.php | 8 +- test/Unit/FakerAwareDefinitionTest.php | 8 +- 28 files changed, 164 insertions(+), 122 deletions(-) diff --git a/.php_cs b/.php_cs index ff4bbf4..ea8ece8 100644 --- a/.php_cs +++ b/.php_cs @@ -8,7 +8,7 @@ declare(strict_types=1); * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ use Ergebnis\PhpCsFixer\Config; @@ -19,7 +19,7 @@ Copyright (c) 2017 Andreas Möller For the full copyright and license information, please view the LICENSE file that was distributed with this source code. -@link https://github.com/localheinz/factory-girl-definition +@link https://github.com/ergebnis/factory-girl-definition EOF; $config = Config\Factory::fromRuleSet(new Config\RuleSet\Php71($header)); diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c80899..3886598 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,46 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased -For a full diff see [`1.3.0...master`][1.3.0...master] +For a full diff see [`2.0.0...master`][2.0.0...master] + +## [`2.0.0`][2.0.0] + +For a full diff see [`1.3.0...2.0.0`][1.3.0...2.0.0]. ### Changed * Added return type declarations ([#71]), by [@localheinz] +* Renamed vendor namespace `Localheinz` to `Ergebnis` after move to [@ergebnis] ([#73]), by [@localheinz] + + Run + + ``` + $ composer remove localheinz/factory-girl-definition + ``` + + and + + ``` + $ composer require ergebnis/factory-girl-definition + ``` + + to update. + + Run + + ``` + $ find . -type f -exec sed -i '.bak' 's/Localheinz\\FactoryGirl\\Definition/Ergebnis\\FactoryGirl\\Definition/g' {} \; + ``` + + to replace occurrences of `Localheinz\FactoryGirl\Definition` with `Ergebnis\FactoryGirl\Definition`. + + Run + + ``` + $ find -type f -name '*.bak' -delete + ``` + + to delete backup files created in the previous step. ### Fixed @@ -56,27 +91,31 @@ For a full diff see [`740095e...0.1.0`][740095e...0.1.0]. * Added interface and finder ([#1]), by [@localheinz] -[0.1.0]: https://github.com/localheinz/factory-girl-definition/tag/0.1.0 -[0.1.1]: https://github.com/localheinz/factory-girl-definition/tag/0.1.1 -[0.2.0]: https://github.com/localheinz/factory-girl-definition/tag/0.2.0 -[1.0.0]: https://github.com/localheinz/factory-girl-definition/tag/1.0.0 -[1.1.0]: https://github.com/localheinz/factory-girl-definition/tag/1.1.0 -[1.2.0]: https://github.com/localheinz/factory-girl-definition/tag/1.2.0 -[1.3.0]: https://github.com/localheinz/factory-girl-definition/tag/1.3.0 - -[740095e...0.1.0]: https://github.com/localheinz/factory-girl-definition/compare/740095e...0.1.0 -[0.1.0...0.1.1]: https://github.com/localheinz/factory-girl-definition/compare/0.1.0...0.1.1 -[0.1.1...0.2.0]: https://github.com/localheinz/factory-girl-definition/compare/0.1.1...0.2.0 -[0.2.0...1.0.0]: https://github.com/localheinz/factory-girl-definition/compare/0.2.0...1.0.0 -[1.0.0...1.1.0]: https://github.com/localheinz/factory-girl-definition/compare/1.0.0...1.1.0 -[1.1.0...1.2.0]: https://github.com/localheinz/factory-girl-definition/compare/1.1.0...1.2.0 -[1.2.0...1.3.0]: https://github.com/localheinz/factory-girl-definition/compare/1.1.0...1.3.0 -[1.3.0...master]: https://github.com/localheinz/factory-girl-definition/compare/1.3.0...master - -[#1]: https://github.com/localheinz/factory-girl-definition/pull/1 -[#3]: https://github.com/localheinz/factory-girl-definition/pull/3 -[#4]: https://github.com/localheinz/factory-girl-definition/pull/4 -[#69]: https://github.com/localheinz/factory-girl-definition/pull/69 -[#71]: https://github.com/localheinz/factory-girl-definition/pull/71 - +[0.1.0]: https://github.com/ergebnis/factory-girl-definition/tag/0.1.0 +[0.1.1]: https://github.com/ergebnis/factory-girl-definition/tag/0.1.1 +[0.2.0]: https://github.com/ergebnis/factory-girl-definition/tag/0.2.0 +[1.0.0]: https://github.com/ergebnis/factory-girl-definition/tag/1.0.0 +[1.1.0]: https://github.com/ergebnis/factory-girl-definition/tag/1.1.0 +[1.2.0]: https://github.com/ergebnis/factory-girl-definition/tag/1.2.0 +[1.3.0]: https://github.com/ergebnis/factory-girl-definition/tag/1.3.0 +[2.0.0]: https://github.com/ergebnis/factory-girl-definition/tag/2.0.0 + +[740095e...0.1.0]: https://github.com/ergebnis/factory-girl-definition/compare/740095e...0.1.0 +[0.1.0...0.1.1]: https://github.com/ergebnis/factory-girl-definition/compare/0.1.0...0.1.1 +[0.1.1...0.2.0]: https://github.com/ergebnis/factory-girl-definition/compare/0.1.1...0.2.0 +[0.2.0...1.0.0]: https://github.com/ergebnis/factory-girl-definition/compare/0.2.0...1.0.0 +[1.0.0...1.1.0]: https://github.com/ergebnis/factory-girl-definition/compare/1.0.0...1.1.0 +[1.1.0...1.2.0]: https://github.com/ergebnis/factory-girl-definition/compare/1.1.0...1.2.0 +[1.2.0...1.3.0]: https://github.com/ergebnis/factory-girl-definition/compare/1.1.0...1.3.0 +[1.3.0...2.0.0]: https://github.com/ergebnis/factory-girl-definition/compare/1.3.0...2.0.0 +[2.0.0...master]: https://github.com/ergebnis/factory-girl-definition/compare/2.0.0...master + +[#1]: https://github.com/ergebnis/factory-girl-definition/pull/1 +[#3]: https://github.com/ergebnis/factory-girl-definition/pull/3 +[#4]: https://github.com/ergebnis/factory-girl-definition/pull/4 +[#69]: https://github.com/ergebnis/factory-girl-definition/pull/69 +[#71]: https://github.com/ergebnis/factory-girl-definition/pull/71 +[#73]: https://github.com/ergebnis/factory-girl-definition/pull/73 + +[@ergebnis]: https://github.com/ergebnis [@localheinz]: https://github.com/localheinz diff --git a/README.md b/README.md index 978b247..0eae672 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # factory-girl-definition -[![Continuous Integration](https://github.com/localheinz/factory-girl-definition/workflows/Continuous%20Integration/badge.svg)](https://github.com/localheinz/factory-girl-definition/actions) -[![Code Coverage](https://codecov.io/gh/localheinz/factory-girl-definition/branch/master/graph/badge.svg)](https://codecov.io/gh/localheinz/factory-girl-definition) -[![Latest Stable Version](https://poser.pugx.org/localheinz/factory-girl-definition/v/stable)](https://packagist.org/packages/localheinz/factory-girl-definition) -[![Total Downloads](https://poser.pugx.org/localheinz/factory-girl-definition/downloads)](https://packagist.org/packages/localheinz/factory-girl-definition) +[![Continuous Integration](https://github.com/ergebnis/factory-girl-definition/workflows/Continuous%20Integration/badge.svg)](https://github.com/ergebnis/factory-girl-definition/actions) +[![Code Coverage](https://codecov.io/gh/ergebnis/factory-girl-definition/branch/master/graph/badge.svg)](https://codecov.io/gh/ergebnis/factory-girl-definition) +[![Latest Stable Version](https://poser.pugx.org/ergebnis/factory-girl-definition/v/stable)](https://packagist.org/packages/ergebnis/factory-girl-definition) +[![Total Downloads](https://poser.pugx.org/ergebnis/factory-girl-definition/downloads)](https://packagist.org/packages/ergebnis/factory-girl-definition) Provides an interface for, and an easy way to find and register entity definitions for [`breerly/factory-girl-php`](https://github.com/breerly/factory-girl-php). @@ -12,7 +12,7 @@ Provides an interface for, and an easy way to find and register entity definitio Run ``` -$ composer require --dev localheinz/factory-girl-definition +$ composer require --dev ergebnis/factory-girl-definition ``` ## Usage @@ -21,8 +21,8 @@ $ composer require --dev localheinz/factory-girl-definition Implement one of the -* `Localheinz\FactoryGirl\Definition\Definition` -* `Localheinz\FactoryGirl\Definition\FakerAwareDefinition` +* `Ergebnis\FactoryGirl\Definition\Definition` +* `Ergebnis\FactoryGirl\Definition\FakerAwareDefinition` interfaces and use the instance of `FactoryGirl\Provider\Doctrine\FixtureFactory` that is passed into `accept()` to define entities: @@ -32,9 +32,9 @@ that is passed into `accept()` to define entities: namespace Foo\Bar\Test\Fixture\Entity; +use Ergebnis\FactoryGirl\Definition\Definition; use FactoryGirl\Provider\Doctrine\FixtureFactory; use Foo\Bar\Entity; -use Localheinz\FactoryGirl\Definition\Definition; final class UserDefinition implements Definition { @@ -63,9 +63,9 @@ fixture factory, and optionally provide definitions with an instance of namespace Foo\Bar\Test\Integration; use Doctrine\ORM; +use Ergebnis\FactoryGirl\Definition\Definitions; use FactoryGirl\Provider\Doctrine\FixtureFactory; use Faker\Generator; -use Localheinz\FactoryGirl\Definition\Definitions; use PHPUnit\Framework; abstract class AbstractIntegrationTestCase extends Framework\TestCase diff --git a/composer.json b/composer.json index 1f4dc9e..05b69be 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { - "name": "localheinz/factory-girl-definition", + "name": "ergebnis/factory-girl-definition", "type": "library", "description": "Provides an interface for, and an easy way to find and register entity definitions for breerly/factory-girl-php.", - "homepage": "https://github.com/localheinz/factory-girl-definition", + "homepage": "https://github.com/ergebnis/factory-girl-definition", "license": "MIT", "authors": [ { @@ -16,6 +16,9 @@ "ergebnis/classy": "~0.5.0", "fzaninotto/faker": "^1.9.0" }, + "replace": { + "localheinz/factory-girl-definition": "*" + }, "require-dev": { "ergebnis/php-cs-fixer-config": "~1.0.0", "ergebnis/phpstan-rules": "~0.14.0", @@ -38,16 +41,16 @@ }, "autoload": { "psr-4": { - "Localheinz\\FactoryGirl\\Definition\\": "src" + "Ergebnis\\FactoryGirl\\Definition\\": "src" } }, "autoload-dev": { "psr-4": { - "Localheinz\\FactoryGirl\\Definition\\Test\\": "test" + "Ergebnis\\FactoryGirl\\Definition\\Test\\": "test" } }, "support": { - "issues": "https://github.com/localheinz/factory-girl-definition/issues", - "source": "https://github.com/localheinz/factory-girl-definition" + "issues": "https://github.com/ergebnis/factory-girl-definition/issues", + "source": "https://github.com/ergebnis/factory-girl-definition" } } diff --git a/composer.lock b/composer.lock index 4df49b5..8e62ff3 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6ab83cacfd2f3ad57d039d977b4b6407", + "content-hash": "17f6c48b09d5ff26f73918ef43ca06a1", "packages": [ { "name": "breerly/factory-girl-php", diff --git a/phpstan.neon b/phpstan.neon index 5182960..9456cf4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,8 +4,8 @@ includes: parameters: ergebnis: classesAllowedToBeExtended: + - Ergebnis\FactoryGirl\Definition\AbstractDefinition - InvalidArgumentException - - Localheinz\FactoryGirl\Definition\AbstractDefinition - RuntimeException inferPrivatePropertyTypeFromConstructor: true level: max diff --git a/src/AbstractDefinition.php b/src/AbstractDefinition.php index db3c6e8..69c7910 100644 --- a/src/AbstractDefinition.php +++ b/src/AbstractDefinition.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition; +namespace Ergebnis\FactoryGirl\Definition; use Faker\Generator; diff --git a/src/Definition.php b/src/Definition.php index d1494a3..80b7139 100644 --- a/src/Definition.php +++ b/src/Definition.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition; +namespace Ergebnis\FactoryGirl\Definition; use FactoryGirl\Provider\Doctrine\FixtureFactory; diff --git a/src/Definitions.php b/src/Definitions.php index cfc5761..f2003da 100644 --- a/src/Definitions.php +++ b/src/Definitions.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition; +namespace Ergebnis\FactoryGirl\Definition; use Ergebnis\Classy; use FactoryGirl\Provider\Doctrine\FixtureFactory; diff --git a/src/Exception/InvalidDefinition.php b/src/Exception/InvalidDefinition.php index b29367a..46c08a4 100644 --- a/src/Exception/InvalidDefinition.php +++ b/src/Exception/InvalidDefinition.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Exception; +namespace Ergebnis\FactoryGirl\Definition\Exception; final class InvalidDefinition extends \RuntimeException { diff --git a/src/Exception/InvalidDirectory.php b/src/Exception/InvalidDirectory.php index 678506f..b28918d 100644 --- a/src/Exception/InvalidDirectory.php +++ b/src/Exception/InvalidDirectory.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Exception; +namespace Ergebnis\FactoryGirl\Definition\Exception; final class InvalidDirectory extends \InvalidArgumentException { diff --git a/src/FakerAwareDefinition.php b/src/FakerAwareDefinition.php index a8e1439..8988e9c 100644 --- a/src/FakerAwareDefinition.php +++ b/src/FakerAwareDefinition.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition; +namespace Ergebnis\FactoryGirl\Definition; use Faker\Generator; diff --git a/test/AutoReview/SrcCodeTest.php b/test/AutoReview/SrcCodeTest.php index 0c0e81e..7053b02 100644 --- a/test/AutoReview/SrcCodeTest.php +++ b/test/AutoReview/SrcCodeTest.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\AutoReview; +namespace Ergebnis\FactoryGirl\Definition\Test\AutoReview; use Ergebnis\Test\Util\Helper; use PHPUnit\Framework; @@ -29,8 +29,8 @@ public function testSrcClassesHaveUnitTests(): void { self::assertClassesHaveTests( __DIR__ . '/../../src', - 'Localheinz\\FactoryGirl\\Definition\\', - 'Localheinz\\FactoryGirl\\Definition\\Test\\Unit\\' + 'Ergebnis\\FactoryGirl\\Definition\\', + 'Ergebnis\\FactoryGirl\\Definition\\Test\\Unit\\' ); } } diff --git a/test/Fixture/Definition/Acceptable/UserDefinition.php b/test/Fixture/Definition/Acceptable/UserDefinition.php index eadfdae..76f4733 100644 --- a/test/Fixture/Definition/Acceptable/UserDefinition.php +++ b/test/Fixture/Definition/Acceptable/UserDefinition.php @@ -8,14 +8,14 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\Acceptable; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\Acceptable; +use Ergebnis\FactoryGirl\Definition\Definition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; -use Localheinz\FactoryGirl\Definition\Definition; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; /** * Is acceptable as it implements the interface. diff --git a/test/Fixture/Definition/DoesNotImplementInterface/UserDefinition.php b/test/Fixture/Definition/DoesNotImplementInterface/UserDefinition.php index 39fe4e7..a8e99b2 100644 --- a/test/Fixture/Definition/DoesNotImplementInterface/UserDefinition.php +++ b/test/Fixture/Definition/DoesNotImplementInterface/UserDefinition.php @@ -8,13 +8,13 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\DoesNotImplementInterface; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\DoesNotImplementInterface; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; /** * Is not acceptable as it does not implement the DefinitionInterface. diff --git a/test/Fixture/Definition/ExtendsAbstractDefinition/UserDefinition.php b/test/Fixture/Definition/ExtendsAbstractDefinition/UserDefinition.php index 644bd3c..5a3441a 100644 --- a/test/Fixture/Definition/ExtendsAbstractDefinition/UserDefinition.php +++ b/test/Fixture/Definition/ExtendsAbstractDefinition/UserDefinition.php @@ -8,14 +8,14 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\ExtendsAbstractDefinition; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\ExtendsAbstractDefinition; +use Ergebnis\FactoryGirl\Definition\AbstractDefinition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; -use Localheinz\FactoryGirl\Definition\AbstractDefinition; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; final class UserDefinition extends AbstractDefinition { diff --git a/test/Fixture/Definition/FakerAware/GroupDefinition.php b/test/Fixture/Definition/FakerAware/GroupDefinition.php index a5ec5fb..1df2169 100644 --- a/test/Fixture/Definition/FakerAware/GroupDefinition.php +++ b/test/Fixture/Definition/FakerAware/GroupDefinition.php @@ -8,15 +8,15 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\FakerAware; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\FakerAware; +use Ergebnis\FactoryGirl\Definition\FakerAwareDefinition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; use Faker\Generator; -use Localheinz\FactoryGirl\Definition\FakerAwareDefinition; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; final class GroupDefinition implements FakerAwareDefinition { diff --git a/test/Fixture/Definition/FakerAware/UserDefinition.php b/test/Fixture/Definition/FakerAware/UserDefinition.php index c8466a4..6d6f1ce 100644 --- a/test/Fixture/Definition/FakerAware/UserDefinition.php +++ b/test/Fixture/Definition/FakerAware/UserDefinition.php @@ -8,14 +8,14 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\FakerAware; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\FakerAware; +use Ergebnis\FactoryGirl\Definition\Definition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; -use Localheinz\FactoryGirl\Definition\Definition; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; final class UserDefinition implements Definition { diff --git a/test/Fixture/Definition/IsAbstract/UserDefinition.php b/test/Fixture/Definition/IsAbstract/UserDefinition.php index 7bf702f..d97fe9e 100644 --- a/test/Fixture/Definition/IsAbstract/UserDefinition.php +++ b/test/Fixture/Definition/IsAbstract/UserDefinition.php @@ -8,14 +8,14 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\IsAbstract; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\IsAbstract; +use Ergebnis\FactoryGirl\Definition\Definition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; -use Localheinz\FactoryGirl\Definition\Definition; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; /** * Is not acceptable as it is abstract. diff --git a/test/Fixture/Definition/PrivateConstructor/UserDefinition.php b/test/Fixture/Definition/PrivateConstructor/UserDefinition.php index 09fe4a1..3b4052a 100644 --- a/test/Fixture/Definition/PrivateConstructor/UserDefinition.php +++ b/test/Fixture/Definition/PrivateConstructor/UserDefinition.php @@ -8,14 +8,14 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\PrivateConstructor; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\PrivateConstructor; +use Ergebnis\FactoryGirl\Definition\Definition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; -use Localheinz\FactoryGirl\Definition\Definition; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; /** * Is not acceptable as it has a private constructor. diff --git a/test/Fixture/Definition/ThrowsExceptionDuringConstruction/UserDefinition.php b/test/Fixture/Definition/ThrowsExceptionDuringConstruction/UserDefinition.php index bf3bd38..de73f1e 100644 --- a/test/Fixture/Definition/ThrowsExceptionDuringConstruction/UserDefinition.php +++ b/test/Fixture/Definition/ThrowsExceptionDuringConstruction/UserDefinition.php @@ -8,14 +8,14 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Definition\ThrowsExceptionDuringConstruction; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Definition\ThrowsExceptionDuringConstruction; +use Ergebnis\FactoryGirl\Definition\Definition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; use FactoryGirl\Provider\Doctrine\FixtureFactory; -use Localheinz\FactoryGirl\Definition\Definition; -use Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; /** * Is not acceptable as it throws an exception during construction. diff --git a/test/Fixture/Entity/Group.php b/test/Fixture/Entity/Group.php index 17aae70..622ba8f 100644 --- a/test/Fixture/Entity/Group.php +++ b/test/Fixture/Entity/Group.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; final class Group { diff --git a/test/Fixture/Entity/User.php b/test/Fixture/Entity/User.php index 473f5ca..d59d164 100644 --- a/test/Fixture/Entity/User.php +++ b/test/Fixture/Entity/User.php @@ -8,10 +8,10 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Fixture\Entity; +namespace Ergebnis\FactoryGirl\Definition\Test\Fixture\Entity; final class User { diff --git a/test/Unit/AbstractDefinitionTest.php b/test/Unit/AbstractDefinitionTest.php index 50e8188..4a65a09 100644 --- a/test/Unit/AbstractDefinitionTest.php +++ b/test/Unit/AbstractDefinitionTest.php @@ -8,22 +8,22 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Unit; +namespace Ergebnis\FactoryGirl\Definition\Test\Unit; +use Ergebnis\FactoryGirl\Definition\AbstractDefinition; +use Ergebnis\FactoryGirl\Definition\FakerAwareDefinition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture; use Ergebnis\Test\Util\Helper; use Faker\Generator; -use Localheinz\FactoryGirl\Definition\AbstractDefinition; -use Localheinz\FactoryGirl\Definition\FakerAwareDefinition; -use Localheinz\FactoryGirl\Definition\Test\Fixture; use PHPUnit\Framework; /** * @internal * - * @covers \Localheinz\FactoryGirl\Definition\AbstractDefinition + * @covers \Ergebnis\FactoryGirl\Definition\AbstractDefinition */ final class AbstractDefinitionTest extends Framework\TestCase { diff --git a/test/Unit/DefinitionsTest.php b/test/Unit/DefinitionsTest.php index 4c2c325..babc121 100644 --- a/test/Unit/DefinitionsTest.php +++ b/test/Unit/DefinitionsTest.php @@ -8,28 +8,28 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Unit; +namespace Ergebnis\FactoryGirl\Definition\Test\Unit; +use Ergebnis\FactoryGirl\Definition\Definition; +use Ergebnis\FactoryGirl\Definition\Definitions; +use Ergebnis\FactoryGirl\Definition\Exception; +use Ergebnis\FactoryGirl\Definition\FakerAwareDefinition; +use Ergebnis\FactoryGirl\Definition\Test\Fixture; use Ergebnis\Test\Util\Helper; use FactoryGirl\Provider\Doctrine\FixtureFactory; use Faker\Generator; -use Localheinz\FactoryGirl\Definition\Definition; -use Localheinz\FactoryGirl\Definition\Definitions; -use Localheinz\FactoryGirl\Definition\Exception; -use Localheinz\FactoryGirl\Definition\FakerAwareDefinition; -use Localheinz\FactoryGirl\Definition\Test\Fixture; use PHPUnit\Framework; /** * @internal * - * @covers \Localheinz\FactoryGirl\Definition\Definitions + * @covers \Ergebnis\FactoryGirl\Definition\Definitions * - * @uses \Localheinz\FactoryGirl\Definition\Exception\InvalidDefinition - * @uses \Localheinz\FactoryGirl\Definition\Exception\InvalidDirectory + * @uses \Ergebnis\FactoryGirl\Definition\Exception\InvalidDefinition + * @uses \Ergebnis\FactoryGirl\Definition\Exception\InvalidDirectory */ final class DefinitionsTest extends Framework\TestCase { diff --git a/test/Unit/Exception/InvalidDefinitionTest.php b/test/Unit/Exception/InvalidDefinitionTest.php index 92093c6..f81e840 100644 --- a/test/Unit/Exception/InvalidDefinitionTest.php +++ b/test/Unit/Exception/InvalidDefinitionTest.php @@ -8,19 +8,19 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Unit\Exception; +namespace Ergebnis\FactoryGirl\Definition\Test\Unit\Exception; +use Ergebnis\FactoryGirl\Definition\Exception; use Ergebnis\Test\Util\Helper; -use Localheinz\FactoryGirl\Definition\Exception; use PHPUnit\Framework; /** * @internal * - * @covers \Localheinz\FactoryGirl\Definition\Exception\InvalidDefinition + * @covers \Ergebnis\FactoryGirl\Definition\Exception\InvalidDefinition */ final class InvalidDefinitionTest extends Framework\TestCase { diff --git a/test/Unit/Exception/InvalidDirectoryTest.php b/test/Unit/Exception/InvalidDirectoryTest.php index 1374c4f..6482901 100644 --- a/test/Unit/Exception/InvalidDirectoryTest.php +++ b/test/Unit/Exception/InvalidDirectoryTest.php @@ -8,19 +8,19 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Unit\Exception; +namespace Ergebnis\FactoryGirl\Definition\Test\Unit\Exception; +use Ergebnis\FactoryGirl\Definition\Exception; use Ergebnis\Test\Util\Helper; -use Localheinz\FactoryGirl\Definition\Exception; use PHPUnit\Framework; /** * @internal * - * @covers \Localheinz\FactoryGirl\Definition\Exception\InvalidDirectory + * @covers \Ergebnis\FactoryGirl\Definition\Exception\InvalidDirectory */ final class InvalidDirectoryTest extends Framework\TestCase { diff --git a/test/Unit/FakerAwareDefinitionTest.php b/test/Unit/FakerAwareDefinitionTest.php index 4e70eac..a666d14 100644 --- a/test/Unit/FakerAwareDefinitionTest.php +++ b/test/Unit/FakerAwareDefinitionTest.php @@ -8,14 +8,14 @@ * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * - * @link https://github.com/localheinz/factory-girl-definition + * @link https://github.com/ergebnis/factory-girl-definition */ -namespace Localheinz\FactoryGirl\Definition\Test\Unit; +namespace Ergebnis\FactoryGirl\Definition\Test\Unit; +use Ergebnis\FactoryGirl\Definition\Definition; +use Ergebnis\FactoryGirl\Definition\FakerAwareDefinition; use Ergebnis\Test\Util\Helper; -use Localheinz\FactoryGirl\Definition\Definition; -use Localheinz\FactoryGirl\Definition\FakerAwareDefinition; use PHPUnit\Framework; /**