From e2eb67978ad676af2deddedfd3cb60e8333da41a Mon Sep 17 00:00:00 2001 From: Martin Kluska Date: Fri, 2 Feb 2024 11:32:01 +0100 Subject: [PATCH] feat(CacheMeService): ttl defined like seconds instead of minutes --- src/Cache/Constants/CacheExpirations.php | 44 ++++++++++++++++--- .../Contracts/CacheMeServiceContract.php | 4 +- src/Cache/Services/CacheMeService.php | 24 ++++++---- src/Context/Services/ContextService.php | 6 +-- .../CacheMeServiceContractAssert.php | 8 ++-- .../CacheMeServiceContractGetExpectation.php | 2 +- .../CacheMeServiceContractSetExpectation.php | 2 +- .../CacheMeServiceContractAssertTest.php | 2 +- .../MakeExpectationCommand/TestAction.php | 2 +- .../TestActionContract.php | 2 +- .../TestActionContractAssert.php.stub | 2 +- .../TestActionContractExpectation.php.stub | 2 +- .../TestActionExpectation.php.stub | 2 +- .../TestReturnAction.php | 2 +- .../TestReturnActionContract.php | 2 +- .../TestReturnActionContractAssert.php.stub | 2 +- ...stReturnActionContractExpectation.php.stub | 2 +- .../TestReturnActionExpectation.php.stub | 2 +- .../TestReturnIntersectionAction.php | 2 +- ...turnIntersectionActionExpectation.php.stub | 2 +- .../TestReturnRequiredAction.php | 2 +- ...stReturnRequiredActionExpectation.php.stub | 2 +- .../TestReturnUnionAction.php | 2 +- .../TestReturnUnionActionContract.php | 2 +- ...stReturnUnionActionContractAssert.php.stub | 2 +- ...urnUnionActionContractExpectation.php.stub | 2 +- .../TestReturnUnionActionExpectation.php.stub | 2 +- .../one.TestActionContractAssert.php.stub | 2 +- ...one.TestActionContractExpectation.php.stub | 2 +- .../one.TestActionExpectation.php.stub | 2 +- ...ne.TestReturnActionContractAssert.php.stub | 2 +- ...stReturnActionContractExpectation.php.stub | 2 +- .../one.TestReturnActionExpectation.php.stub | 2 +- ...turnIntersectionActionExpectation.php.stub | 2 +- ...stReturnRequiredActionExpectation.php.stub | 2 +- ...stReturnUnionActionContractAssert.php.stub | 2 +- ...urnUnionActionContractExpectation.php.stub | 2 +- ....TestReturnUnionActionExpectation.php.stub | 2 +- .../two.TestActionContractAssert.php.stub | 2 +- ...two.TestActionContractExpectation.php.stub | 2 +- .../two.TestActionExpectation.php.stub | 2 +- ...wo.TestReturnActionContractAssert.php.stub | 2 +- ...stReturnActionContractExpectation.php.stub | 2 +- .../two.TestReturnActionExpectation.php.stub | 2 +- ...turnIntersectionActionExpectation.php.stub | 2 +- ...stReturnRequiredActionExpectation.php.stub | 2 +- ...stReturnUnionActionContractAssert.php.stub | 2 +- ...urnUnionActionContractExpectation.php.stub | 2 +- ....TestReturnUnionActionExpectation.php.stub | 2 +- 49 files changed, 106 insertions(+), 68 deletions(-) diff --git a/src/Cache/Constants/CacheExpirations.php b/src/Cache/Constants/CacheExpirations.php index a724895d..d5214e18 100644 --- a/src/Cache/Constants/CacheExpirations.php +++ b/src/Cache/Constants/CacheExpirations.php @@ -5,17 +5,49 @@ namespace LaraStrict\Cache\Constants; /** - * Stores on minutes. + * Stores in seconds */ -class CacheExpirations +final class CacheExpirations { /** - * 720 minutes - 12 hours. + * minute in seconds */ - final public const HalfDay = 720; + public const Minute = 60; /** - * 1 days. + * hour in seconds */ - final public const Long = 44640; + public const Hour = 60 * self::Minute; + + /** + * day in seconds + */ + public const Day = 24 * self::Hour; + + /** + * week in seconds + */ + public const Week = 7 * self::Day; + + /** + * average month in seconds + */ + public const Month = 2_629_800; + + /** + * average year in seconds + */ + public const Year = 31_557_600; + + /** + * Fixed value + * + * @deprecated + */ + public const Long = self::Month; + + /** + * @deprecated + */ + public const HalfDay = 12 * self::Hour; } diff --git a/src/Cache/Contracts/CacheMeServiceContract.php b/src/Cache/Contracts/CacheMeServiceContract.php index 2bcbcf3c..9d8571df 100644 --- a/src/Cache/Contracts/CacheMeServiceContract.php +++ b/src/Cache/Contracts/CacheMeServiceContract.php @@ -24,7 +24,7 @@ public function get( string $key, Closure $getValue, array $tags = [], - int $minutes = CacheExpirations::HalfDay, + int $seconds = CacheExpirations::Day, CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, bool $log = true ): mixed; @@ -36,7 +36,7 @@ public function set( string $key, mixed $value, array $tags = [], - int $minutes = CacheExpirations::HalfDay, + int $seconds = CacheExpirations::Day, CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, bool $log = true ): void; diff --git a/src/Cache/Services/CacheMeService.php b/src/Cache/Services/CacheMeService.php index a32baedb..bc12c2ad 100644 --- a/src/Cache/Services/CacheMeService.php +++ b/src/Cache/Services/CacheMeService.php @@ -30,18 +30,24 @@ public function __construct( /** * Stores in memory and uses the default cache. + * + * @param ?int $minutes - deprecated use $seconds */ public function get( string $key, Closure $getValue, array $tags = [], - int $minutes = CacheExpirations::HalfDay, + int $seconds = CacheExpirations::Day, CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, - bool $log = true + bool $log = true, + ?int $minutes = null ): mixed { if ($strategy === CacheMeStrategy::None) { return $this->container->call($getValue); } + if ($minutes !== null) { + $seconds = $minutes; + } $value = null; $repositories = $this->repositories($tags, $strategy); @@ -72,7 +78,7 @@ public function get( key: $key, value: $value, tags: $tags, - minutes: $minutes, + seconds: $seconds, log: false ); } @@ -91,7 +97,7 @@ public function get( key: $key, value: $value, tags: $tags, - minutes: $minutes, + seconds: $seconds, log: $log ); } @@ -107,7 +113,7 @@ public function set( string $key, mixed $value, array $tags = [], - int $minutes = CacheExpirations::HalfDay, + int $seconds = CacheExpirations::Day, CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, bool $log = true ): void { @@ -116,7 +122,7 @@ public function set( key: $key, value: $value, tags: $tags, - minutes: $minutes, + seconds: $seconds, log: $log ); } @@ -244,7 +250,7 @@ protected function store( string $key, mixed $value, array $tags = [], - int $minutes = CacheExpirations::HalfDay, + int $seconds = CacheExpirations::Day, bool $log = true ): void { if ($repositories === []) { @@ -254,14 +260,14 @@ protected function store( if ($log) { $this->logger->debug('Storing cache', [ 'key' => $key, - 'minutes' => $minutes, + 'seconds' => $seconds, 'tags' => $tags, 'store' => array_map(static fn (CacheContract $store) => $store->getStore()::class, $repositories), ]); } foreach ($repositories as $store) { - $store->set($key, $value, $minutes); + $store->set($key, $value, $seconds); } } diff --git a/src/Context/Services/ContextService.php b/src/Context/Services/ContextService.php index 046b8770..8e4e23f0 100644 --- a/src/Context/Services/ContextService.php +++ b/src/Context/Services/ContextService.php @@ -45,7 +45,7 @@ public function set(AbstractContext $context, ContextValueContract $value): void key: $fullCacheKey, value: $value, tags: $this->getTags($context), - minutes: $context->getCacheTtl(), + seconds: $context->getCacheTtl(), ); } @@ -57,7 +57,7 @@ public function setWithoutCache(AbstractContext $context, ContextValueContract $ key: $fullCacheKey, value: $value, tags: $this->getTags($context), - minutes: $context->getCacheTtl(), + seconds: $context->getCacheTtl(), strategy: CacheMeStrategy::Memory, ); } @@ -70,7 +70,7 @@ public function get(AbstractContext $context, Closure $createState): ContextValu key: $fullCacheKey, getValue: $createState, tags: $this->getTags($context), - minutes: $context->getCacheTtl(), + seconds: $context->getCacheTtl(), strategy: $this->cacheStrategy($context) ); } diff --git a/src/Testing/Cache/Contracts/CacheMeServiceContractAssert.php b/src/Testing/Cache/Contracts/CacheMeServiceContractAssert.php index 74d6aa40..c0bc874d 100644 --- a/src/Testing/Cache/Contracts/CacheMeServiceContractAssert.php +++ b/src/Testing/Cache/Contracts/CacheMeServiceContractAssert.php @@ -46,7 +46,7 @@ public function get( string $key, Closure $getValue, array $tags = [], - int $minutes = CacheExpirations::HalfDay, + int $seconds = CacheExpirations::Day, CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, bool $log = true, ): mixed { @@ -55,7 +55,7 @@ public function get( Assert::assertEquals($expectation->key, $key, $message); Assert::assertEquals($expectation->tags, $tags, $message); - Assert::assertEquals($expectation->minutes, $minutes, $message); + Assert::assertEquals($expectation->minutes, $seconds, $message); Assert::assertEquals($expectation->strategy, $strategy, $message); Assert::assertEquals($expectation->log, $log, $message); @@ -71,7 +71,7 @@ public function set( string $key, mixed $value, array $tags = [], - int $minutes = CacheExpirations::HalfDay, + int $seconds = CacheExpirations::Day, CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, bool $log = true, ): void { @@ -81,7 +81,7 @@ public function set( Assert::assertEquals($expectation->key, $key, $message); Assert::assertEquals($expectation->value, $value, $message); Assert::assertEquals($expectation->tags, $tags, $message); - Assert::assertEquals($expectation->minutes, $minutes, $message); + Assert::assertEquals($expectation->minutes, $seconds, $message); Assert::assertEquals($expectation->strategy, $strategy, $message); Assert::assertEquals($expectation->log, $log, $message); } diff --git a/src/Testing/Cache/Contracts/CacheMeServiceContractGetExpectation.php b/src/Testing/Cache/Contracts/CacheMeServiceContractGetExpectation.php index 096b6987..269a436a 100644 --- a/src/Testing/Cache/Contracts/CacheMeServiceContractGetExpectation.php +++ b/src/Testing/Cache/Contracts/CacheMeServiceContractGetExpectation.php @@ -16,7 +16,7 @@ final class CacheMeServiceContractGetExpectation public function __construct( public readonly string $key, public readonly array $tags = [], - public readonly int $minutes = CacheExpirations::HalfDay, + public readonly int $minutes = CacheExpirations::Day, public readonly CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, public readonly ?Closure $callGetValueHook = null, public readonly bool $log = true, diff --git a/src/Testing/Cache/Contracts/CacheMeServiceContractSetExpectation.php b/src/Testing/Cache/Contracts/CacheMeServiceContractSetExpectation.php index ee4478df..097327ee 100644 --- a/src/Testing/Cache/Contracts/CacheMeServiceContractSetExpectation.php +++ b/src/Testing/Cache/Contracts/CacheMeServiceContractSetExpectation.php @@ -13,7 +13,7 @@ public function __construct( public readonly string $key, public readonly mixed $value, public readonly array $tags = [], - public readonly int $minutes = CacheExpirations::HalfDay, + public readonly int $minutes = CacheExpirations::Day, public readonly CacheMeStrategy $strategy = CacheMeStrategy::MemoryAndRepository, public readonly bool $log = true, ) { diff --git a/tests/Feature/Testing/Cache/Contracts/CacheMeServiceContractAssertTest.php b/tests/Feature/Testing/Cache/Contracts/CacheMeServiceContractAssertTest.php index d7ee6e16..e5d9401a 100644 --- a/tests/Feature/Testing/Cache/Contracts/CacheMeServiceContractAssertTest.php +++ b/tests/Feature/Testing/Cache/Contracts/CacheMeServiceContractAssertTest.php @@ -54,7 +54,7 @@ protected function generateData(): array key: self::Key, value: self::Return, tags: [self::Return], - minutes: 230, + seconds: 230, strategy: CacheMeStrategy::Memory, ), checkResult: false, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestAction.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestAction.php index abb3abbe..2d6804b9 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestAction.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestAction.php @@ -26,7 +26,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContract.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContract.php index 3e3f66d5..57f7b813 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContract.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContract.php @@ -26,7 +26,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractAssert.php.stub index 599c1826..74d87f3a 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestActionContractAssert extends \LaraStrict\Testing\Assert\AbstractExpect string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractExpectation.php.stub index 3cf12d24..f8d7d3be 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionContractExpectation.php.stub @@ -21,7 +21,7 @@ final class TestActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionExpectation.php.stub index eb71de51..8c25abcb 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestActionExpectation.php.stub @@ -21,7 +21,7 @@ final class TestActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnAction.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnAction.php index 34bb2326..9f69226d 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnAction.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnAction.php @@ -27,7 +27,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContract.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContract.php index 9cb60cd6..2a187a30 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContract.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContract.php @@ -26,7 +26,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractAssert.php.stub index b7165d5a..ba1a840a 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestReturnActionContractAssert extends \LaraStrict\Testing\Assert\Abstract string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractExpectation.php.stub index f50079f4..eccde567 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionContractExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionExpectation.php.stub index 3f64e86a..8a9bb132 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionAction.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionAction.php index 03ce3a23..be74fd43 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionAction.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionAction.php @@ -26,7 +26,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionActionExpectation.php.stub index ed5956e7..c6e9ffab 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnIntersectionActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnIntersectionActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredAction.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredAction.php index f7065076..e9771fc6 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredAction.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredAction.php @@ -26,7 +26,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredActionExpectation.php.stub index 6987863f..fb4ec9da 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnRequiredActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnRequiredActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionAction.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionAction.php index 9ecfeb3a..1d163284 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionAction.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionAction.php @@ -26,7 +26,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContract.php b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContract.php index 52d7f1b2..785d841e 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContract.php +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContract.php @@ -27,7 +27,7 @@ public function execute( ?string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = CacheExpirations::HalfDay, + int $constantClass = CacheExpirations::Day, EnvironmentType $enumDefault = EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractAssert.php.stub index 0bb84376..930394e9 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestReturnUnionActionContractAssert extends \LaraStrict\Testing\Assert\Abs string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractExpectation.php.stub index 11d699fc..95c00820 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionContractExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnUnionActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionExpectation.php.stub index 3aaab375..92c38e36 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/TestReturnUnionActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnUnionActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractAssert.php.stub index 8e359df0..5099327f 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestActionContractAssert extends \LaraStrict\Testing\Assert\AbstractExpect string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractExpectation.php.stub index ec7cd873..e66c49ec 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionContractExpectation.php.stub @@ -21,7 +21,7 @@ final class TestActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionExpectation.php.stub index cb94bb53..52c8c7d8 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestActionExpectation.php.stub @@ -21,7 +21,7 @@ final class TestActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractAssert.php.stub index a9fa6dcf..a1cf7576 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestReturnActionContractAssert extends \LaraStrict\Testing\Assert\Abstract string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractExpectation.php.stub index a4ca55b4..aa747f1c 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionContractExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionExpectation.php.stub index 793e89d6..294a2a0e 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnIntersectionActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnIntersectionActionExpectation.php.stub index c260adc6..8686e210 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnIntersectionActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnIntersectionActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnIntersectionActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnRequiredActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnRequiredActionExpectation.php.stub index 4ddbcda5..ca08e635 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnRequiredActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnRequiredActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnRequiredActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractAssert.php.stub index f1ce2a92..d31be957 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestReturnUnionActionContractAssert extends \LaraStrict\Testing\Assert\Abs string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractExpectation.php.stub index 34ab0aba..091f750b 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionContractExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnUnionActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionExpectation.php.stub index bd1715f5..b4e5087a 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/one.TestReturnUnionActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnUnionActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractAssert.php.stub index df745a03..a7f54ca0 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestActionContractAssert extends \LaraStrict\Testing\Assert\AbstractExpect string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractExpectation.php.stub index efdca0e7..1fcd75cf 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionContractExpectation.php.stub @@ -21,7 +21,7 @@ final class TestActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionExpectation.php.stub index d026b15d..eb18720a 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestActionExpectation.php.stub @@ -21,7 +21,7 @@ final class TestActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractAssert.php.stub index de2d2b74..97d58942 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestReturnActionContractAssert extends \LaraStrict\Testing\Assert\Abstract string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractExpectation.php.stub index 51656faf..0c6e3d65 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionContractExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionExpectation.php.stub index 91126e5f..3b9dfe78 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnIntersectionActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnIntersectionActionExpectation.php.stub index 1212910d..08662c5a 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnIntersectionActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnIntersectionActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnIntersectionActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnRequiredActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnRequiredActionExpectation.php.stub index f305e58f..fabbfde1 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnRequiredActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnRequiredActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnRequiredActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractAssert.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractAssert.php.stub index 8c6a4914..6e485201 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractAssert.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractAssert.php.stub @@ -29,7 +29,7 @@ class TestReturnUnionActionContractAssert extends \LaraStrict\Testing\Assert\Abs string $optional = null, string $optionalString = 'test', string $constant = DIRECTORY_SEPARATOR, - int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, $noTypeHintDefault = null, string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractExpectation.php.stub index 695c2aae..ecdd592c 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionContractExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnUnionActionContractExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST, diff --git a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionExpectation.php.stub b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionExpectation.php.stub index 9772cc63..d7302df8 100644 --- a/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionExpectation.php.stub +++ b/tests/Feature/Testing/Commands/MakeExpectationCommand/two.TestReturnUnionActionExpectation.php.stub @@ -22,7 +22,7 @@ final class TestReturnUnionActionExpectation public readonly ?string $optional = null, public readonly string $optionalString = 'test', public readonly string $constant = \DIRECTORY_SEPARATOR, - public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::HalfDay, + public readonly int $constantClass = \LaraStrict\Cache\Constants\CacheExpirations::Day, public readonly \LaraStrict\Enums\EnvironmentType $enumDefault = \LaraStrict\Enums\EnvironmentType::Testing, public readonly mixed $noTypeHintDefault = null, public readonly string $customConstants = \Tests\LaraStrict\Feature\Testing\Commands\MakeExpectationCommand\Constants\CustomConstants::TEST,