Spaces:
No application file
No application file
File size: 662 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?php
namespace Mautic\LeadBundle\Tests\Validator\Constraints;
use Mautic\LeadBundle\Validator\Constraints\Length;
use Mautic\LeadBundle\Validator\Constraints\LengthValidator;
class LengthValidatorTest extends \PHPUnit\Framework\TestCase
{
/**
* @doesNotPerformAssertions
*/
public function testValidate(): void
{
$constraint = new Length(['min' => 3, 'allowEmptyString' => true]);
$validator = new LengthValidator();
$validator->validate('valid', $constraint);
// Not thrownig Symfony\Component\Validator\Exception\UnexpectedTypeException
$validator->validate(['0', '1'], $constraint);
}
}
|