Skip to content

Commit e9cf8a7

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: remove an invalid test [Translation] fix support of `TranslatableInterface` in `IdentityTranslator` Fix various bool-type coercions
2 parents 85067b0 + ae567f7 commit e9cf8a7

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

Tests/Constraints/CssColorTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,6 @@ public function testAttributes()
4141
self::assertSame('some attached data', $cConstraint->payload);
4242
}
4343

44-
public function testMissingPattern()
45-
{
46-
$constraint = new CssColor(null);
47-
48-
$this->assertSame([
49-
CssColor::HEX_LONG,
50-
CssColor::HEX_LONG_WITH_ALPHA,
51-
CssColor::HEX_SHORT,
52-
CssColor::HEX_SHORT_WITH_ALPHA,
53-
CssColor::BASIC_NAMED_COLORS,
54-
CssColor::EXTENDED_NAMED_COLORS,
55-
CssColor::SYSTEM_COLORS,
56-
CssColor::KEYWORDS,
57-
CssColor::RGB,
58-
CssColor::RGBA,
59-
CssColor::HSL,
60-
CssColor::HSLA,
61-
], $constraint->formats);
62-
}
63-
6444
public function testMissingPatternDoctrineStyle()
6545
{
6646
$constraint = new CssColor([]);

Tests/Constraints/IsbnValidatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static function getInvalidIsbn()
121121

122122
public function testNullIsValid()
123123
{
124-
$constraint = new Isbn(true);
124+
$constraint = new Isbn();
125125

126126
$this->validator->validate(null, $constraint);
127127

@@ -130,7 +130,7 @@ public function testNullIsValid()
130130

131131
public function testEmptyStringIsValid()
132132
{
133-
$constraint = new Isbn(true);
133+
$constraint = new Isbn();
134134

135135
$this->validator->validate('', $constraint);
136136

@@ -140,7 +140,7 @@ public function testEmptyStringIsValid()
140140
public function testExpectsStringCompatibleType()
141141
{
142142
$this->expectException(UnexpectedValueException::class);
143-
$constraint = new Isbn(true);
143+
$constraint = new Isbn();
144144

145145
$this->validator->validate(new \stdClass(), $constraint);
146146
}

0 commit comments

Comments
 (0)