Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\PHPUnit\Doubles;
namespace Craftzing\TestBench\Doubles\Callable;

final readonly class CallableInvocation
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\Doubles;
namespace Craftzing\TestBench\Doubles\Callable;

final readonly class FalsyCallback
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\Doubles;
namespace Craftzing\TestBench\Doubles\Callable;

use LogicException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\PHPUnit\Doubles;
namespace Craftzing\TestBench\Doubles\Callable;

use Craftzing\TestBench\PHPUnit\AssertsConstraints;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\PHPUnit\Doubles;
namespace Craftzing\TestBench\Doubles\Callable;

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\Doubles;
namespace Craftzing\TestBench\Doubles\Callable;

final readonly class TruthyCallback
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\PHPUnit\Doubles\Enums;
namespace Craftzing\TestBench\Doubles\Enum;

enum IntBackedEnum: int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\PHPUnit\Doubles\Enums;
namespace Craftzing\TestBench\Doubles\Enum;

enum StringBackedEnum: string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Craftzing\TestBench\PHPUnit\Doubles\Enums;
namespace Craftzing\TestBench\Doubles\Enum;

enum UnitEnum
{
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/Constraint/Bus/HasHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Craftzing\TestBench\Laravel\Constraint\Bus;

use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use Illuminate\Support\Facades\Bus;
use InvalidArgumentException;
use Orchestra\Testbench\TestCase;
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/Constraint/Bus/WasHandled.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace Craftzing\TestBench\Laravel\Constraint\Bus;

use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use Craftzing\TestBench\PHPUnit\Constraint\Callables\WasCalled;
use Craftzing\TestBench\PHPUnit\Constraint\Objects\DerivesConstraintsFromObjects;
use Craftzing\TestBench\PHPUnit\Constraint\ProvidesAdditionalFailureDescription;
use Craftzing\TestBench\PHPUnit\Constraint\Quantable;
use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use Illuminate\Contracts\Bus\Dispatcher;
use Illuminate\Contracts\Container\Container;
use Illuminate\Support\Traits\ReflectsClosures;
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/Constraint/Bus/WasHandledTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Craftzing\TestBench\Laravel\Constraint\Bus;

use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use Craftzing\TestBench\PHPUnit\Constraint\Callables\Assertions\WithSameArguments;
use Craftzing\TestBench\PHPUnit\Constraint\Callables\WasCalled;
use Craftzing\TestBench\PHPUnit\Constraint\Objects\DeriveConstraintsFromObjectUsingFakes;
use Craftzing\TestBench\PHPUnit\Constraint\Objects\DeriveConstraintsFromObjectUsingReflection;
use Craftzing\TestBench\PHPUnit\Constraint\Spy;
use Craftzing\TestBench\PHPUnit\DataProviders\QuantableConstraint;
use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use Illuminate\Support\Facades\Bus;
use InvalidArgumentException;
use LogicException;
Expand Down
4 changes: 2 additions & 2 deletions src/PHPUnit/Constraint/Callables/WasCalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Craftzing\TestBench\PHPUnit\Constraint\Callables;

use Craftzing\TestBench\Doubles\Callable\CallableInvocation;
use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use Craftzing\TestBench\PHPUnit\Constraint\ProvidesAdditionalFailureDescription;
use Craftzing\TestBench\PHPUnit\Constraint\Quantable;
use Craftzing\TestBench\PHPUnit\Doubles\CallableInvocation;
use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use InvalidArgumentException;
use Override;
use PHPUnit\Framework\Constraint\Constraint;
Expand Down
2 changes: 1 addition & 1 deletion src/PHPUnit/Constraint/Callables/WasCalledTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Craftzing\TestBench\PHPUnit\Constraint\Callables;

use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use Craftzing\TestBench\PHPUnit\DataProviders\QuantableConstraint;
use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use InvalidArgumentException;
use PHPUnit\Framework\Attributes\DataProviderExternal;
use PHPUnit\Framework\Attributes\Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Craftzing\TestBench\PHPUnit\Constraint\Objects;

use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use PHPUnit\Framework\Constraint\Callback;

final readonly class DeriveConstraintsFromObjectUsingFakes implements DeriveConstraintsFromObject
Expand Down
2 changes: 1 addition & 1 deletion src/PHPUnit/Constraint/Spy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Craftzing\TestBench\PHPUnit\Constraint;

use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use PHPUnit\Framework\Constraint\Constraint;

final class Spy extends Constraint
Expand Down
6 changes: 3 additions & 3 deletions src/PHPUnit/DataProviders/EnumCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Craftzing\TestBench\PHPUnit\DataProviders;

use Craftzing\TestBench\PHPUnit\Doubles\Enums\IntBackedEnum;
use Craftzing\TestBench\PHPUnit\Doubles\Enums\StringBackedEnum;
use Craftzing\TestBench\PHPUnit\Doubles\Enums\UnitEnum;
use Craftzing\TestBench\Doubles\Enum\IntBackedEnum;
use Craftzing\TestBench\Doubles\Enum\StringBackedEnum;
use Craftzing\TestBench\Doubles\Enum\UnitEnum;
use Faker\Factory;
use Faker\Generator;
use Illuminate\Support\Arr;
Expand Down
2 changes: 1 addition & 1 deletion src/PHPUnit/DataProviders/QuantableConstraintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Craftzing\TestBench\PHPUnit\DataProviders;

use Craftzing\TestBench\Doubles\Callable\SpyCallable;
use Craftzing\TestBench\PHPUnit\Constraint\Callables\Assertions\WithSameArguments;
use Craftzing\TestBench\PHPUnit\Constraint\Callables\WasCalled;
use Craftzing\TestBench\PHPUnit\Constraint\Quantable;
use Craftzing\TestBench\PHPUnit\Doubles\SpyCallable;
use Faker\Factory;
use Faker\Generator;
use Illuminate\Support\Collection;
Expand Down