tests/Validator/Constraints/FormatterValidatorTest.php
/**
     * NEXT_MAJOR: Remove the group when deleting FormatterInterface.
     *
     * @group legacy
     */
Remove the group when deleting FormatterInterface.
@group legacy
Remove the group when deleting FormatterInterface . @group legacy
public function testValidCase(): void
    {
        $this->pool->add('existingFormatter', $this->createMock(FormatterInterface::class));
        $this->constraint->message = $message = 'Constraint message';
        $this->context->expects(static::never())
            ->method('addViolation');
        $validator = new FormatterValidator($this->pool);
        static::assertInstanceOf(ConstraintValidator::class, $validator);
        $validator->initialize($this->context);
        $validator->validate('existingFormatter', $this->constraint);
    }
public function testValidCase ( ) : void { $ this -> pool -> add ( 'existingFormatter' , $ this -> createMock ( FormatterInterface :: class ) ) ; $ this -> constraint -> message = $ message = 'Constraint message' ; $ this -> context -> expects ( static :: never ( ) ) -> method ( 'addViolation' ) ; $ validator = new FormatterValidator ( $ this -> pool ) ; static :: assertInstanceOf ( ConstraintValidator :: class , $ validator ) ; $ validator -> initialize ( $ this -> context ) ; $ validator -> validate ( 'existingFormatter' , $ this -> constraint ) ; }
NEXT_MAJOR: Remove the group when deleting FormatterInterface.
NEXT_MAJOR : Remove the group when deleting FormatterInterface .