File tree Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -41,26 +41,6 @@ public function testAttributes()
41
41
self ::assertSame ('some attached data ' , $ cConstraint ->payload );
42
42
}
43
43
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
-
64
44
public function testMissingPatternDoctrineStyle ()
65
45
{
66
46
$ constraint = new CssColor ([]);
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public static function getInvalidIsbn()
121
121
122
122
public function testNullIsValid ()
123
123
{
124
- $ constraint = new Isbn (true );
124
+ $ constraint = new Isbn ();
125
125
126
126
$ this ->validator ->validate (null , $ constraint );
127
127
@@ -130,7 +130,7 @@ public function testNullIsValid()
130
130
131
131
public function testEmptyStringIsValid ()
132
132
{
133
- $ constraint = new Isbn (true );
133
+ $ constraint = new Isbn ();
134
134
135
135
$ this ->validator ->validate ('' , $ constraint );
136
136
@@ -140,7 +140,7 @@ public function testEmptyStringIsValid()
140
140
public function testExpectsStringCompatibleType ()
141
141
{
142
142
$ this ->expectException (UnexpectedValueException::class);
143
- $ constraint = new Isbn (true );
143
+ $ constraint = new Isbn ();
144
144
145
145
$ this ->validator ->validate (new \stdClass (), $ constraint );
146
146
}
You can’t perform that action at this time.
0 commit comments