@@ -39,7 +39,7 @@ public function testEmptyStringIsValid()
3939
4040 public function testValidComparisonToPropertyPath ()
4141 {
42- $ constraint = new Bic (array ( 'ibanPropertyPath ' => 'value ' ) );
42+ $ constraint = new Bic ([ 'ibanPropertyPath ' => 'value ' ] );
4343
4444 $ object = new BicComparisonTestClass ('FR14 2004 1010 0505 0001 3M02 606 ' );
4545
@@ -52,9 +52,9 @@ public function testValidComparisonToPropertyPath()
5252
5353 public function testValidComparisonToPropertyPathOnArray ()
5454 {
55- $ constraint = new Bic (array ( 'ibanPropertyPath ' => '[root][value] ' ) );
55+ $ constraint = new Bic ([ 'ibanPropertyPath ' => '[root][value] ' ] );
5656
57- $ this ->setObject (array ( 'root ' => array ( 'value ' => 'FR14 2004 1010 0505 0001 3M02 606 ' )) );
57+ $ this ->setObject ([ 'root ' => [ 'value ' => 'FR14 2004 1010 0505 0001 3M02 606 ' ]] );
5858
5959 $ this ->validator ->validate ('SOGEFRPP ' , $ constraint );
6060
@@ -63,7 +63,7 @@ public function testValidComparisonToPropertyPathOnArray()
6363
6464 public function testInvalidComparisonToPropertyPath ()
6565 {
66- $ constraint = new Bic (array ( 'ibanPropertyPath ' => 'value ' ) );
66+ $ constraint = new Bic ([ 'ibanPropertyPath ' => 'value ' ] );
6767 $ constraint ->ibanMessage = 'Constraint Message ' ;
6868
6969 $ object = new BicComparisonTestClass ('FR14 2004 1010 0505 0001 3M02 606 ' );
@@ -81,7 +81,7 @@ public function testInvalidComparisonToPropertyPath()
8181
8282 public function testValidComparisonToValue ()
8383 {
84- $ constraint = new Bic (array ( 'iban ' => 'FR14 2004 1010 0505 0001 3M02 606 ' ) );
84+ $ constraint = new Bic ([ 'iban ' => 'FR14 2004 1010 0505 0001 3M02 606 ' ] );
8585 $ constraint ->ibanMessage = 'Constraint Message ' ;
8686
8787 $ this ->validator ->validate ('SOGEFRPP ' , $ constraint );
@@ -91,7 +91,7 @@ public function testValidComparisonToValue()
9191
9292 public function testInvalidComparisonToValue ()
9393 {
94- $ constraint = new Bic (array ( 'iban ' => 'FR14 2004 1010 0505 0001 3M02 606 ' ) );
94+ $ constraint = new Bic ([ 'iban ' => 'FR14 2004 1010 0505 0001 3M02 606 ' ] );
9595 $ constraint ->ibanMessage = 'Constraint Message ' ;
9696
9797 $ this ->validator ->validate ('UNCRIT2B912 ' , $ constraint );
@@ -105,7 +105,7 @@ public function testInvalidComparisonToValue()
105105
106106 public function testNoViolationOnNullObjectWithPropertyPath ()
107107 {
108- $ constraint = new Bic (array ( 'ibanPropertyPath ' => 'propertyPath ' ) );
108+ $ constraint = new Bic ([ 'ibanPropertyPath ' => 'propertyPath ' ] );
109109
110110 $ this ->setObject (null );
111111
@@ -120,15 +120,15 @@ public function testNoViolationOnNullObjectWithPropertyPath()
120120 */
121121 public function testThrowsConstraintExceptionIfBothValueAndPropertyPath ()
122122 {
123- new Bic (array (
123+ new Bic ([
124124 'iban ' => 'value ' ,
125125 'ibanPropertyPath ' => 'propertyPath ' ,
126- ) );
126+ ] );
127127 }
128128
129129 public function testInvalidValuePath ()
130130 {
131- $ constraint = new Bic (array ( 'ibanPropertyPath ' => 'foo ' ) );
131+ $ constraint = new Bic ([ 'ibanPropertyPath ' => 'foo ' ] );
132132
133133 if (method_exists ($ this , 'expectException ' )) {
134134 $ this ->expectException (ConstraintDefinitionException::class);
@@ -230,7 +230,7 @@ public function getInvalidBics()
230230 */
231231 public function testValidBicSpecialCases (string $ bic , string $ iban )
232232 {
233- $ constraint = new Bic (array ( 'iban ' => $ iban) );
233+ $ constraint = new Bic ([ 'iban ' => $ iban] );
234234 $ this ->validator ->validate ($ bic , $ constraint );
235235
236236 $ this ->assertNoViolation ();
@@ -239,22 +239,22 @@ public function testValidBicSpecialCases(string $bic, string $iban)
239239 public function getValidBicSpecialCases ()
240240 {
241241 // FR related special cases
242- yield array ( 'BNPAGFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
243- yield array ( 'BNPAPFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
244- yield array ( 'BNPATFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
245- yield array ( 'BNPAGPGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
246- yield array ( 'BNPAMQGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
247- yield array ( 'BNPAYTGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
248- yield array ( 'BNPANCGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
249- yield array ( 'BNPAREGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
250- yield array ( 'BNPAPMGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
251- yield array ( 'BNPAWFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ) ;
242+ yield [ 'BNPAGFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
243+ yield [ 'BNPAPFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
244+ yield [ 'BNPATFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
245+ yield [ 'BNPAGPGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
246+ yield [ 'BNPAMQGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
247+ yield [ 'BNPAYTGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
248+ yield [ 'BNPANCGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
249+ yield [ 'BNPAREGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
250+ yield [ 'BNPAPMGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
251+ yield [ 'BNPAWFGX ' , 'FR14 2004 1010 0505 0001 3M02 606 ' ] ;
252252
253253 // GB related special cases
254- yield array ( 'BARCJESA ' , 'GB12 CPBK 0892 9965 0449 911 ' ) ;
255- yield array ( 'BARCIMSA ' , 'GB12 CPBK 0892 9965 0449 911 ' ) ;
256- yield array ( 'BARCGGSA ' , 'GB12 CPBK 0892 9965 0449 911 ' ) ;
257- yield array ( 'BARCVGSA ' , 'GB12 CPBK 0892 9965 0449 911 ' ) ;
254+ yield [ 'BARCJESA ' , 'GB12 CPBK 0892 9965 0449 911 ' ] ;
255+ yield [ 'BARCIMSA ' , 'GB12 CPBK 0892 9965 0449 911 ' ] ;
256+ yield [ 'BARCGGSA ' , 'GB12 CPBK 0892 9965 0449 911 ' ] ;
257+ yield [ 'BARCVGSA ' , 'GB12 CPBK 0892 9965 0449 911 ' ] ;
258258 }
259259}
260260
0 commit comments