From 5ed0113590102fc15721e9296422d2bcdaff2e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Halberstadt?= Date: Tue, 13 Oct 2026 17:15:46 +0200 Subject: [PATCH] Rename namespace to Tezmanian and prepare for Packagist - Namespace Tez\Utils -> Tezmanian\Utils, package tez/* -> tezmanian/* - Add keywords, homepage, authors and support metadata - Drop VCS repositories (resolved via Packagist) - Remove stale composer.lock, set license holder --- LICENSE | 2 +- README.md | 58 ++++++++++++++++++++++------------ composer.json | 35 ++++++++++++-------- src/ArrayDiff.php | 2 +- src/CartesianProduct.php | 2 +- src/Change.php | 2 +- src/ChangeType.php | 4 +-- src/DeepMerge.php | 2 +- src/DiffResult.php | 2 +- src/Find.php | 2 +- src/Flatten.php | 2 +- src/GroupBy.php | 2 +- src/KeyBy.php | 2 +- src/MapWithKeys.php | 2 +- src/Page.php | 2 +- src/Paginator.php | 2 +- src/Partition.php | 2 +- src/Pluck.php | 2 +- src/SafeGet.php | 2 +- src/Sliding.php | 2 +- src/SortBy.php | 2 +- src/Transpose.php | 2 +- src/UniqueBy.php | 2 +- src/Wrap.php | 2 +- src/Zip.php | 2 +- tests/ArrayDiffTest.php | 8 ++--- tests/CartesianProductTest.php | 4 +-- tests/DeepMergeTest.php | 4 +-- tests/FindTest.php | 4 +-- tests/FlattenTest.php | 4 +-- tests/GroupByTest.php | 4 +-- tests/KeyByTest.php | 4 +-- tests/MapWithKeysTest.php | 4 +-- tests/PaginatorTest.php | 6 ++-- tests/PartitionTest.php | 4 +-- tests/PluckTest.php | 4 +-- tests/SafeGetTest.php | 4 +-- tests/SlidingTest.php | 4 +-- tests/SortByTest.php | 4 +-- tests/TransposeTest.php | 4 +-- tests/UniqueByTest.php | 4 +-- tests/WrapTest.php | 4 +-- tests/ZipTest.php | 4 +-- 43 files changed, 121 insertions(+), 98 deletions(-) diff --git a/LICENSE b/LICENSE index ff3a818..f0a8205 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 Development +Copyright (c) 2026 René Halberstadt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including diff --git a/README.md b/README.md index 61b8006..286cc38 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,20 @@ # tez-utils-arr +[![CI](https://github.com/tezmanian/tez-utils-arr/actions/workflows/php.yml/badge.svg)](https://github.com/tezmanian/tez-utils-arr/actions/workflows/php.yml) +[![Packagist Version](https://img.shields.io/packagist/v/tezmanian/utils-arr)](https://packagist.org/packages/tezmanian/utils-arr) +[![PHP](https://img.shields.io/packagist/php-v/tezmanian/utils-arr)](https://packagist.org/packages/tezmanian/utils-arr) +[![License: MIT](https://img.shields.io/packagist/l/tezmanian/utils-arr)](LICENSE) + A collection of focused, stateless array utility classes for PHP 8.3+. Each class does one thing and exposes a clean static API. ## Installation ```bash -composer require tez/utils-arr +composer require tezmanian/utils-arr ``` +Package: [`tezmanian/utils-arr`](https://packagist.org/packages/tezmanian/utils-arr) · Namespace: `Tezmanian\Utils\Arr` + ## Components | Class | Purpose | @@ -38,7 +45,7 @@ composer require tez/utils-arr Recursively compares two arrays and returns all differences with dot-notation paths. ```php -use Tez\Utils\Arr\ArrayDiff; +use Tezmanian\Utils\Arr\ArrayDiff; $result = ArrayDiff::compare( ['user' => ['name' => 'Alice', 'age' => 30]], @@ -66,7 +73,7 @@ Comparison is strict (`1 !== "1"`). Keys are reported as `ChangeType::Added`, `C Computes the Cartesian product of any number of sets lazily via a Generator. ```php -use Tez\Utils\Arr\CartesianProduct; +use Tezmanian\Utils\Arr\CartesianProduct; foreach (CartesianProduct::create(['S', 'M', 'L'], ['red', 'blue']) as $tuple) { // ['S', 'red'], ['S', 'blue'], ['M', 'red'], ... @@ -82,7 +89,7 @@ No intermediate array is built — suitable for large input sets. Recursively merges override arrays into a base array. Multiple overrides are applied left to right. ```php -use Tez\Utils\Arr\DeepMerge; +use Tezmanian\Utils\Arr\DeepMerge; $result = DeepMerge::merge( ['db' => ['host' => 'localhost', 'port' => 3306]], @@ -100,7 +107,7 @@ String keys are merged recursively when both sides are arrays. Integer keys are Returns the first or last item matching a predicate. ```php -use Tez\Utils\Arr\Find; +use Tezmanian\Utils\Arr\Find; $first = Find::first($users, fn($u) => $u['active']); $last = Find::last($users, fn($u) => $u['active']); @@ -114,7 +121,7 @@ $last = Find::last($users, fn($u) => $u['active']); Flattens a nested array into a single list. Accepts an optional depth limit. ```php -use Tez\Utils\Arr\Flatten; +use Tezmanian\Utils\Arr\Flatten; Flatten::flatten([1, [2, [3, 4]]]); // [1, 2, 3, 4] Flatten::flatten([1, [2, [3, 4]]], depth: 1); // [1, 2, [3, 4]] @@ -127,7 +134,7 @@ Flatten::flatten([1, [2, [3, 4]]], depth: 1); // [1, 2, [3, 4]] Groups items by a key derived from a callback. ```php -use Tez\Utils\Arr\GroupBy; +use Tezmanian\Utils\Arr\GroupBy; $grouped = GroupBy::group($orders, fn($o) => $o['status']); // ['pending' => [...], 'shipped' => [...]] @@ -140,7 +147,7 @@ $grouped = GroupBy::group($orders, fn($o) => $o['status']); Builds an associative lookup map from a list. When two items produce the same key, the last wins. ```php -use Tez\Utils\Arr\KeyBy; +use Tezmanian\Utils\Arr\KeyBy; $byId = KeyBy::index($users, fn($u) => $u['id']); // [42 => $user, 99 => $user, ...] @@ -153,7 +160,7 @@ $byId = KeyBy::index($users, fn($u) => $u['id']); Maps over an array where the callback returns a `[key => value]` pair. ```php -use Tez\Utils\Arr\MapWithKeys; +use Tezmanian\Utils\Arr\MapWithKeys; $result = MapWithKeys::map($products, fn($p) => [$p['sku'] => $p['price']]); // ['ABC-1' => 9.99, 'XYZ-2' => 4.49] @@ -166,7 +173,7 @@ $result = MapWithKeys::map($products, fn($p) => [$p['sku'] => $p['price']]); Paginates an array and returns an immutable `Page` with slice and metadata. ```php -use Tez\Utils\Arr\Paginator; +use Tezmanian\Utils\Arr\Paginator; $page = Paginator::paginate($items, page: 2, perPage: 15); @@ -187,7 +194,7 @@ Throws `InvalidArgumentException` when `$page < 1` or `$perPage < 1`. Splits an array into two lists in a single pass — items passing the predicate first, failing items second. ```php -use Tez\Utils\Arr\Partition; +use Tezmanian\Utils\Arr\Partition; [$active, $inactive] = Partition::by($users, fn($u) => $u['active']); ``` @@ -199,7 +206,7 @@ use Tez\Utils\Arr\Partition; Extracts values from an array of records using dot-notation keys. ```php -use Tez\Utils\Arr\Pluck; +use Tezmanian\Utils\Arr\Pluck; // Extract a single column Pluck::values($users, 'name'); // ['Alice', 'Bob', ...] @@ -221,7 +228,7 @@ Items where the key is absent are silently skipped. Safely reads typed values from deeply nested arrays using dot-notation paths. Returns `null` (or a default) when any segment is missing. ```php -use Tez\Utils\Arr\SafeGet; +use Tezmanian\Utils\Arr\SafeGet; $data = ['chart' => ['result' => [['meta' => ['currency' => 'EUR']]]]]; @@ -241,7 +248,7 @@ Integer-looking segments (e.g. `"0"`) address list indices automatically. Produces consecutive overlapping windows of a fixed size. ```php -use Tez\Utils\Arr\Sliding; +use Tezmanian\Utils\Arr\Sliding; Sliding::window([1, 2, 3, 4, 5], size: 3); // [[1,2,3], [2,3,4], [3,4,5]] @@ -257,7 +264,7 @@ Sliding::window([1, 2, 3, 4, 5], size: 3, step: 2); Sorts a copy of the array by a derived key. Never mutates the original. Result is always re-indexed. ```php -use Tez\Utils\Arr\SortBy; +use Tezmanian\Utils\Arr\SortBy; $sorted = SortBy::sort($products, fn($p) => $p['price']); $desc = SortBy::sort($products, fn($p) => $p['price'], descending: true); @@ -270,7 +277,7 @@ $desc = SortBy::sort($products, fn($p) => $p['price'], descending: true); Swaps rows and columns of a 2D array. All rows must have the same column count. ```php -use Tez\Utils\Arr\Transpose; +use Tezmanian\Utils\Arr\Transpose; Transpose::matrix([[1, 2, 3], [4, 5, 6]]); // [[1, 4], [2, 5], [3, 6]] @@ -283,7 +290,7 @@ Transpose::matrix([[1, 2, 3], [4, 5, 6]]); Removes duplicates where uniqueness is determined by a callback. ```php -use Tez\Utils\Arr\UniqueBy; +use Tezmanian\Utils\Arr\UniqueBy; // Keep first occurrence (default) UniqueBy::filter($items, fn($i) => $i['email']); @@ -302,7 +309,7 @@ UniqueBy::filter($items, fn($i) => $i['email'], preserveKeys: true); Ensures any value is an array. `null` becomes `[]`, arrays pass through, everything else gets wrapped. ```php -use Tez\Utils\Arr\Wrap; +use Tezmanian\Utils\Arr\Wrap; Wrap::ensure(null); // [] Wrap::ensure('hello'); // ['hello'] @@ -316,7 +323,7 @@ Wrap::ensure([1, 2]); // [1, 2] Combines multiple arrays element-by-element into a list of tuples. ```php -use Tez\Utils\Arr\Zip; +use Tezmanian\Utils\Arr\Zip; // Pad shorter arrays with null Zip::zip([1, 2, 3], ['a', 'b']); @@ -332,8 +339,17 @@ Zip::shortest([1, 2, 3], ['a', 'b']); ## Requirements - PHP 8.3+ -- `tez/utils-enum` ^1.0 +- [`tezmanian/utils-enum`](https://packagist.org/packages/tezmanian/utils-enum) ^1.0 + +## Development + +```bash +make build && make install +make ci # audit, PHPStan, code style, tests +``` ## License -MIT +MIT — see [LICENSE](LICENSE). + +Author: René Halberstadt diff --git a/composer.json b/composer.json index 311d478..9891303 100644 --- a/composer.json +++ b/composer.json @@ -1,31 +1,38 @@ { - "name": "tez/utils-arr", + "name": "tezmanian/utils-arr", "type": "library", "description": "A set of focused PHP array utilities: grouping, pagination, diffing, sorting, partitioning, flattening, cartesian products, and more — PHP 8.3+, no framework required.", + "keywords": [ + "array", + "collection", + "utilities", + "php" + ], + "homepage": "https://github.com/tezmanian/tez-utils-arr", "license": "MIT", + "authors": [ + { + "name": "René Halberstadt", + "email": "tezmanian@gmail.com" + } + ], + "support": { + "issues": "https://github.com/tezmanian/tez-utils-arr/issues", + "source": "https://github.com/tezmanian/tez-utils-arr" + }, "autoload": { "psr-4": { - "Tez\\Utils\\Arr\\": "src/" + "Tezmanian\\Utils\\Arr\\": "src/" } }, "autoload-dev": { "psr-4": { - "Tez\\Utils\\Tests\\Arr\\": "tests/" + "Tezmanian\\Utils\\Tests\\Arr\\": "tests/" } }, - "repositories": [ - { - "type": "git", - "url": "https://gitea.root-zone.info/tez/tez-utils-enum.git" - }, - { - "type": "git", - "url": "https://github.com/tezmanian/tez-utils-enum.git" - } - ], "require": { "php": ">=8.3", - "tez/utils-enum": "^1.0" + "tezmanian/utils-enum": "^1.0" }, "require-dev": { "phpunit/phpunit": "^11.0", diff --git a/src/ArrayDiff.php b/src/ArrayDiff.php index 6bec46f..8b7199b 100644 --- a/src/ArrayDiff.php +++ b/src/ArrayDiff.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class ArrayDiff { diff --git a/src/CartesianProduct.php b/src/CartesianProduct.php index 55adbcb..fe4841c 100644 --- a/src/CartesianProduct.php +++ b/src/CartesianProduct.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; /** * Computes the Cartesian product of any number of sets lazily via a Generator. diff --git a/src/Change.php b/src/Change.php index 5fdac84..aee5708 100644 --- a/src/Change.php +++ b/src/Change.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; /** * Represents a single difference between two arrays at a specific dot-notation path. diff --git a/src/ChangeType.php b/src/ChangeType.php index 162cce3..bb64889 100644 --- a/src/ChangeType.php +++ b/src/ChangeType.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; -use Tez\Utils\Enum\BackedEnumTrait; +use Tezmanian\Utils\Enum\BackedEnumTrait; /** * Classifies the type of a single difference detected by ArrayDiff. diff --git a/src/DeepMerge.php b/src/DeepMerge.php index acb424b..53e7a81 100644 --- a/src/DeepMerge.php +++ b/src/DeepMerge.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class DeepMerge { diff --git a/src/DiffResult.php b/src/DiffResult.php index e4391a2..864b36b 100644 --- a/src/DiffResult.php +++ b/src/DiffResult.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; /** * Immutable result of an ArrayDiff comparison. diff --git a/src/Find.php b/src/Find.php index 03d83f0..7e04b92 100644 --- a/src/Find.php +++ b/src/Find.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Find { diff --git a/src/Flatten.php b/src/Flatten.php index 19f632f..e2c7553 100644 --- a/src/Flatten.php +++ b/src/Flatten.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Flatten { diff --git a/src/GroupBy.php b/src/GroupBy.php index cc057cb..37148ed 100644 --- a/src/GroupBy.php +++ b/src/GroupBy.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class GroupBy { diff --git a/src/KeyBy.php b/src/KeyBy.php index 638c5bd..b9379b4 100644 --- a/src/KeyBy.php +++ b/src/KeyBy.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class KeyBy { diff --git a/src/MapWithKeys.php b/src/MapWithKeys.php index 9516461..1652566 100644 --- a/src/MapWithKeys.php +++ b/src/MapWithKeys.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class MapWithKeys { diff --git a/src/Page.php b/src/Page.php index 8a9ec09..c388730 100644 --- a/src/Page.php +++ b/src/Page.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; /** * Immutable result of a paginated array slice. diff --git a/src/Paginator.php b/src/Paginator.php index bce5f8d..2e88849 100644 --- a/src/Paginator.php +++ b/src/Paginator.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Paginator { diff --git a/src/Partition.php b/src/Partition.php index b55c323..3483474 100644 --- a/src/Partition.php +++ b/src/Partition.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Partition { diff --git a/src/Pluck.php b/src/Pluck.php index 3a72030..f6fa06c 100644 --- a/src/Pluck.php +++ b/src/Pluck.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Pluck { diff --git a/src/SafeGet.php b/src/SafeGet.php index 6474452..205e237 100644 --- a/src/SafeGet.php +++ b/src/SafeGet.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; /** * Safely read deeply nested values from an array using dot-notation paths. diff --git a/src/Sliding.php b/src/Sliding.php index d9e5538..56e1d44 100644 --- a/src/Sliding.php +++ b/src/Sliding.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Sliding { diff --git a/src/SortBy.php b/src/SortBy.php index 27a4963..8b48222 100644 --- a/src/SortBy.php +++ b/src/SortBy.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class SortBy { diff --git a/src/Transpose.php b/src/Transpose.php index 58f341d..7ab7042 100644 --- a/src/Transpose.php +++ b/src/Transpose.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Transpose { diff --git a/src/UniqueBy.php b/src/UniqueBy.php index 310a77a..200437e 100644 --- a/src/UniqueBy.php +++ b/src/UniqueBy.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class UniqueBy { diff --git a/src/Wrap.php b/src/Wrap.php index 192f4b6..defb8fd 100644 --- a/src/Wrap.php +++ b/src/Wrap.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Wrap { diff --git a/src/Zip.php b/src/Zip.php index 547eb1c..757fbda 100644 --- a/src/Zip.php +++ b/src/Zip.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tez\Utils\Arr; +namespace Tezmanian\Utils\Arr; final class Zip { diff --git a/tests/ArrayDiffTest.php b/tests/ArrayDiffTest.php index f3f1186..b93d2d1 100644 --- a/tests/ArrayDiffTest.php +++ b/tests/ArrayDiffTest.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\ArrayDiff; -use Tez\Utils\Arr\ChangeType; -use Tez\Utils\Arr\DiffResult; +use Tezmanian\Utils\Arr\ArrayDiff; +use Tezmanian\Utils\Arr\ChangeType; +use Tezmanian\Utils\Arr\DiffResult; final class ArrayDiffTest extends TestCase { diff --git a/tests/CartesianProductTest.php b/tests/CartesianProductTest.php index 15af01f..30f03d6 100644 --- a/tests/CartesianProductTest.php +++ b/tests/CartesianProductTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\CartesianProduct; +use Tezmanian\Utils\Arr\CartesianProduct; final class CartesianProductTest extends TestCase { diff --git a/tests/DeepMergeTest.php b/tests/DeepMergeTest.php index b83e90b..a92ee03 100644 --- a/tests/DeepMergeTest.php +++ b/tests/DeepMergeTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\DeepMerge; +use Tezmanian\Utils\Arr\DeepMerge; final class DeepMergeTest extends TestCase { diff --git a/tests/FindTest.php b/tests/FindTest.php index ff55ba3..e76c362 100644 --- a/tests/FindTest.php +++ b/tests/FindTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Find; +use Tezmanian\Utils\Arr\Find; final class FindTest extends TestCase { diff --git a/tests/FlattenTest.php b/tests/FlattenTest.php index 5fb2431..8c4e879 100644 --- a/tests/FlattenTest.php +++ b/tests/FlattenTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Flatten; +use Tezmanian\Utils\Arr\Flatten; final class FlattenTest extends TestCase { diff --git a/tests/GroupByTest.php b/tests/GroupByTest.php index 56e5a50..d34a4ec 100644 --- a/tests/GroupByTest.php +++ b/tests/GroupByTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\GroupBy; +use Tezmanian\Utils\Arr\GroupBy; final class GroupByTest extends TestCase { diff --git a/tests/KeyByTest.php b/tests/KeyByTest.php index bd809b0..7fd2711 100644 --- a/tests/KeyByTest.php +++ b/tests/KeyByTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\KeyBy; +use Tezmanian\Utils\Arr\KeyBy; final class KeyByTest extends TestCase { diff --git a/tests/MapWithKeysTest.php b/tests/MapWithKeysTest.php index c45bd0a..1937057 100644 --- a/tests/MapWithKeysTest.php +++ b/tests/MapWithKeysTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\MapWithKeys; +use Tezmanian\Utils\Arr\MapWithKeys; final class MapWithKeysTest extends TestCase { diff --git a/tests/PaginatorTest.php b/tests/PaginatorTest.php index ca44d45..f700995 100644 --- a/tests/PaginatorTest.php +++ b/tests/PaginatorTest.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Page; -use Tez\Utils\Arr\Paginator; +use Tezmanian\Utils\Arr\Page; +use Tezmanian\Utils\Arr\Paginator; final class PaginatorTest extends TestCase { diff --git a/tests/PartitionTest.php b/tests/PartitionTest.php index 37a8d63..c3255ac 100644 --- a/tests/PartitionTest.php +++ b/tests/PartitionTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Partition; +use Tezmanian\Utils\Arr\Partition; final class PartitionTest extends TestCase { diff --git a/tests/PluckTest.php b/tests/PluckTest.php index 619aac9..16347be 100644 --- a/tests/PluckTest.php +++ b/tests/PluckTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Pluck; +use Tezmanian\Utils\Arr\Pluck; final class PluckTest extends TestCase { diff --git a/tests/SafeGetTest.php b/tests/SafeGetTest.php index 439393e..e0d4065 100644 --- a/tests/SafeGetTest.php +++ b/tests/SafeGetTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\SafeGet; +use Tezmanian\Utils\Arr\SafeGet; final class SafeGetTest extends TestCase { diff --git a/tests/SlidingTest.php b/tests/SlidingTest.php index 8b20265..b8cd3bb 100644 --- a/tests/SlidingTest.php +++ b/tests/SlidingTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Sliding; +use Tezmanian\Utils\Arr\Sliding; final class SlidingTest extends TestCase { diff --git a/tests/SortByTest.php b/tests/SortByTest.php index 017cdf8..ada2f9d 100644 --- a/tests/SortByTest.php +++ b/tests/SortByTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\SortBy; +use Tezmanian\Utils\Arr\SortBy; final class SortByTest extends TestCase { diff --git a/tests/TransposeTest.php b/tests/TransposeTest.php index 4075a87..7f0a405 100644 --- a/tests/TransposeTest.php +++ b/tests/TransposeTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Transpose; +use Tezmanian\Utils\Arr\Transpose; final class TransposeTest extends TestCase { diff --git a/tests/UniqueByTest.php b/tests/UniqueByTest.php index e0e83cb..e49af3c 100644 --- a/tests/UniqueByTest.php +++ b/tests/UniqueByTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\UniqueBy; +use Tezmanian\Utils\Arr\UniqueBy; final class UniqueByTest extends TestCase { diff --git a/tests/WrapTest.php b/tests/WrapTest.php index b3832d7..d2679ed 100644 --- a/tests/WrapTest.php +++ b/tests/WrapTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Wrap; +use Tezmanian\Utils\Arr\Wrap; final class WrapTest extends TestCase { diff --git a/tests/ZipTest.php b/tests/ZipTest.php index 74d5ddf..6a46f9f 100644 --- a/tests/ZipTest.php +++ b/tests/ZipTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Tez\Utils\Tests\Arr; +namespace Tezmanian\Utils\Tests\Arr; use PHPUnit\Framework\TestCase; -use Tez\Utils\Arr\Zip; +use Tezmanian\Utils\Arr\Zip; final class ZipTest extends TestCase {