Skip to content

Commit

Permalink
Fix: Namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 25, 2023
1 parent 6a265f5 commit 95c0d01
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 6 additions & 4 deletions test/Unit/MajorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @see https://github.com/ergebnis/version
*/

namespace Ergebnis\Version\Test\Unit;

use Ergebnis\Version\Exception;
use Ergebnis\Version\Major;
use Ergebnis\Version\Test;
Expand All @@ -34,9 +36,9 @@ public function testFromStringRejectsInvalidValue(string $value): void
* @see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
* @see https://regex101.com/r/Ly7O1x/3/
*
* @return Generator<string, array{0: string}>
* @return \Generator<string, array{0: string}>
*/
public static function provideInvalidValue(): Generator
public static function provideInvalidValue(): \Generator
{
$faker = self::faker();

Expand Down Expand Up @@ -67,9 +69,9 @@ public function testFromStringReturnsMajor(string $value): void
* @see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
* @see https://regex101.com/r/Ly7O1x/3/
*
* @return Generator<string, array{0: string}>
* @return \Generator<string, array{0: string}>
*/
public static function provideValidValue(): Generator
public static function provideValidValue(): \Generator
{
$values = [
'zero' => '0',
Expand Down
10 changes: 6 additions & 4 deletions test/Unit/MinorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @see https://github.com/ergebnis/version
*/

namespace Ergebnis\Version\Test\Unit;

use Ergebnis\Version\Exception;
use Ergebnis\Version\Minor;
use Ergebnis\Version\Test;
Expand All @@ -34,9 +36,9 @@ public function testFromStringRejectsInvalidValue(string $value): void
* @see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
* @see https://regex101.com/r/Ly7O1x/3/
*
* @return Generator<string, array{0: string}>
* @return \Generator<string, array{0: string}>
*/
public static function provideInvalidValue(): Generator
public static function provideInvalidValue(): \Generator
{
$faker = self::faker();

Expand Down Expand Up @@ -67,9 +69,9 @@ public function testFromStringReturnsMinor(string $value): void
* @see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
* @see https://regex101.com/r/Ly7O1x/3/
*
* @return Generator<string, array{0: string}>
* @return \Generator<string, array{0: string}>
*/
public static function provideValidValue(): Generator
public static function provideValidValue(): \Generator
{
$values = [
'zero' => '0',
Expand Down
10 changes: 6 additions & 4 deletions test/Unit/PatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @see https://github.com/ergebnis/version
*/

namespace Ergebnis\Version\Test\Unit;

use Ergebnis\Version\Exception;
use Ergebnis\Version\Patch;
use Ergebnis\Version\Test;
Expand All @@ -34,9 +36,9 @@ public function testFromStringRejectsInvalidValue(string $value): void
* @see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
* @see https://regex101.com/r/Ly7O1x/3/
*
* @return Generator<string, array{0: string}>
* @return \Generator<string, array{0: string}>
*/
public static function provideInvalidValue(): Generator
public static function provideInvalidValue(): \Generator
{
$faker = self::faker();

Expand Down Expand Up @@ -67,9 +69,9 @@ public function testFromStringReturnsPatch(string $value): void
* @see https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
* @see https://regex101.com/r/Ly7O1x/3/
*
* @return Generator<string, array{0: string}>
* @return \Generator<string, array{0: string}>
*/
public static function provideValidValue(): Generator
public static function provideValidValue(): \Generator
{
$values = [
'zero' => '0',
Expand Down

0 comments on commit 95c0d01

Please sign in to comment.