$this->
assertNoViolation();
} /**
* @dataProvider getSoonerThanTenthMarch2014
*/
public function testInvalidDatesMin($value,
$dateTimeAsString) { // Conversion of dates to string differs between ICU versions
// Make sure we have the correct version loaded
IntlTestHelper::
requireIntl($this, '57.1'
);
$constraint =
new Range([ 'min' => 'March 10, 2014',
'minMessage' => 'myMessage',
]);
$this->validator->
validate($value,
$constraint);
$this->
buildViolation('myMessage'
) ->
setParameter('{{ value }}',
$dateTimeAsString) ->
setParameter('{{ limit }}', 'Mar 10, 2014, 12:00 AM'
)