feat: add CurrencyValidator

fix: add CurrencyValidator

CurrencyValidator

zarad
This commit is contained in:
2024-01-17 13:50:50 +01:00
parent 64a07b232a
commit 1437ce4558
13 changed files with 2331 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Tests\Validator;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
abstract class ValidatorTestCase extends TestCase
{
protected function createExecutionContext(bool $violation): ExecutionContextInterface {
$expected = $violation ? $this->once() : $this->never();
$context = $this->createMock(ExecutionContextInterface::class);
$context->expects($expected)
->method('buildViolation');
return $context;
}
}