Skip to content

Commit e68c917

Browse files
committed
-
1 parent 78ac8cd commit e68c917

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,15 @@ public function testThrowsConstraintExceptionIfValue()
6565
/**
6666
* @dataProvider provideInvalidConstraintOptions
6767
*/
68-
// public function testThrowsConstraintExceptionIfNoValueOrPropertyPath($options)
69-
// {
70-
// $this->expectException(ConstraintDefinitionException::class);
71-
// $this->expectExceptionMessage('requires either the "value" or "propertyPath" option to be set.');
72-
// $this->markTestSkipped('Value option always set for NegativeOrZero constraint');
73-
// }
74-
//
75-
// public function testThrowsConstraintExceptionIfBothValueAndPropertyPath()
76-
// {
77-
// $this->expectException(ConstraintDefinitionException::class);
78-
// $this->expectExceptionMessage('requires only one of the "value" or "propertyPath" options to be set, not both.');
79-
// $this->markTestSkipped('Value option is set for NegativeOrZero constraint automatically');
80-
// }
68+
public function testThrowsConstraintExceptionIfNoValueOrPropertyPath($options)
69+
{
70+
$this->markTestSkipped('Value option always set for NegativeOrZero constraint');
71+
}
72+
73+
public function testThrowsConstraintExceptionIfBothValueAndPropertyPath()
74+
{
75+
$this->markTestSkipped('Value option is set for NegativeOrZero constraint automatically');
76+
}
8177

8278
public function testNoViolationOnNullObjectWithPropertyPath()
8379
{

0 commit comments

Comments
 (0)