File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Extension/Validator/Constraints Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Form \Extension \Validator \Constraints ;
13
13
14
- use Symfony \Component \Form \ClickableInterface ;
15
14
use Symfony \Component \Form \FormInterface ;
16
15
use Symfony \Component \Form \Extension \Validator \Util \ServerParams ;
17
16
use Symfony \Component \Validator \Constraint ;
Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Component \Form \Extension \Core \DataMapper \PropertyPathMapper ;
15
15
use Symfony \Component \Form \Extension \HttpFoundation \HttpFoundationRequestHandler ;
16
- use Symfony \Component \Form \FormBuilder ;
17
16
use Symfony \Component \Form \FormError ;
18
17
use Symfony \Component \Form \Forms ;
19
18
use Symfony \Component \Form \FormView ;
Original file line number Diff line number Diff line change @@ -778,25 +778,25 @@ public function testDayErrorsBubbleUp($widget)
778
778
$ this ->assertSame (array (), $ form ['day ' ]->getErrors ());
779
779
$ this ->assertSame (array ($ error ), $ form ->getErrors ());
780
780
}
781
-
781
+
782
782
public function testYearsFor32BitsMachines ()
783
783
{
784
784
if (4 !== PHP_INT_SIZE ) {
785
785
$ this ->markTestSkipped (
786
786
'PHP must be compiled in 32 bit mode to run this test ' );
787
787
}
788
-
788
+
789
789
$ form = $ this ->factory ->create ('date ' , null , array (
790
790
'years ' => range (1900 , 2040 ),
791
791
));
792
792
793
793
$ view = $ form ->createView ();
794
794
795
795
$ listChoices = array ();
796
- foreach (range (1902 , 2037 ) as $ y ) {
796
+ foreach (range (1902 , 2037 ) as $ y ) {
797
797
$ listChoices [] = new ChoiceView ($ y , $ y , $ y );
798
798
}
799
-
799
+
800
800
$ this ->assertEquals ($ listChoices , $ view ['year ' ]->vars ['choices ' ]);
801
801
}
802
802
}
You can’t perform that action at this time.
0 commit comments