diff --git a/composer.json b/composer.json index 53d326b..77dc9d2 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "phpunit/phpunit": "^13.3", "roave/backward-compatibility-check": "^8.21.0", "roave/security-advisories": "dev-master", - "webware/webware-tools": "^1.0.0-rc.5" + "webware/webware-tools": "^1.0.0-rc.6" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index bf6638e..d871f75 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": "47651f3d4cd5cd33c12af77adaa22520", + "content-hash": "3289b71b003abba3860bbe40a1e46b69", "packages": [ { "name": "brick/varexporter", @@ -9829,16 +9829,16 @@ }, { "name": "webware/webware-tools", - "version": "1.0.0-rc.5", + "version": "1.0.0-rc.6", "source": { "type": "git", "url": "https://github.com/webinertia/webware-tools.git", - "reference": "46caed444973f45ae81c27909d55ffc5602e3175" + "reference": "d005c08ff563a5086d50c2ea4a9cb36b9052192a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webinertia/webware-tools/zipball/46caed444973f45ae81c27909d55ffc5602e3175", - "reference": "46caed444973f45ae81c27909d55ffc5602e3175", + "url": "https://api.github.com/repos/webinertia/webware-tools/zipball/d005c08ff563a5086d50c2ea4a9cb36b9052192a", + "reference": "d005c08ff563a5086d50c2ea4a9cb36b9052192a", "shasum": "" }, "require": { @@ -9867,9 +9867,9 @@ ], "support": { "issues": "https://github.com/webinertia/webware-tools/issues", - "source": "https://github.com/webinertia/webware-tools/tree/1.0.0-rc.5" + "source": "https://github.com/webinertia/webware-tools/tree/1.0.0-rc.6" }, - "time": "2026-10-10T04:07:50+00:00" + "time": "2026-10-15T06:56:25+00:00" } ], "aliases": [], diff --git a/test/unit/Container/PasswordRequirementFactoryTest.php b/test/unit/Container/PasswordRequirementFactoryTest.php index 2755b5a..6b0ac91 100644 --- a/test/unit/Container/PasswordRequirementFactoryTest.php +++ b/test/unit/Container/PasswordRequirementFactoryTest.php @@ -30,8 +30,7 @@ final class PasswordRequirementFactoryTest extends TestCase public function buildsADefaultValidatorWhenNothingIsConfigured(): void { $container = $this->createStub(ContainerInterface::class); - $container->method('has') - ->willReturn(false); + $container->method('has')->willReturn(false); $validator = new PasswordRequirementFactory()( container : $container, @@ -45,10 +44,8 @@ public function buildsADefaultValidatorWhenNothingIsConfigured(): void public function buildsAValidatorFromTheConfiguredDefaults(): void { $container = $this->createStub(ContainerInterface::class); - $container->method('has') - ->willReturn(true); - $container->method('get') - ->willReturn([PasswordRequirement::class => ['length' => 4]]); + $container->method('has')->willReturn(true); + $container->method('get')->willReturn([PasswordRequirement::class => ['length' => 4]]); $validator = new PasswordRequirementFactory()( container : $container, @@ -63,10 +60,8 @@ public function buildsAValidatorFromTheConfiguredDefaults(): void public function letsCallSiteOptionsOverrideTheConfiguredDefaults(): void { $container = $this->createStub(ContainerInterface::class); - $container->method('has') - ->willReturn(true); - $container->method('get') - ->willReturn([PasswordRequirement::class => ['length' => 8]]); + $container->method('has')->willReturn(true); + $container->method('get')->willReturn([PasswordRequirement::class => ['length' => 8]]); $validator = new PasswordRequirementFactory()( container : $container, @@ -82,8 +77,7 @@ public function letsCallSiteOptionsOverrideTheConfiguredDefaults(): void public function usesCallSiteOptionsWhenNoConfigServiceIsRegistered(): void { $container = $this->createStub(ContainerInterface::class); - $container->method('has') - ->willReturn(false); + $container->method('has')->willReturn(false); $validator = new PasswordRequirementFactory()( container : $container,