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()
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 ([]);
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments